diff options
author | Chris Dyer <cdyer@vivace.clab.cs.cmu.edu> | 2015-03-04 22:46:33 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@vivace.clab.cs.cmu.edu> | 2015-03-04 22:46:33 -0500 |
commit | d99c7b9593e5f0c4a408302b82e7bfeaeee665bc (patch) | |
tree | 45d90a199b40ed8e5bdb40cc2f1361b697c2fe79 /training/utils | |
parent | a003126ab5a172ef6d1de2a857e8ccfb90688a68 (diff) |
deal with libdl
Diffstat (limited to 'training/utils')
-rw-r--r-- | training/utils/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/training/utils/CMakeLists.txt b/training/utils/CMakeLists.txt index 1734ee73..2753b9f0 100644 --- a/training/utils/CMakeLists.txt +++ b/training/utils/CMakeLists.txt @@ -2,6 +2,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../../utils) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../../mteval) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../../decoder) +find_package(Threads REQUIRED) + set(training_utils_STAT_SRCS candidate_set.h entropy.h @@ -21,11 +23,11 @@ add_library(training_utils STATIC ${training_utils_STAT_SRCS}) set(sentserver_SRCS sentserver.cc) add_executable(sentserver ${sentserver_SRCS}) -target_link_libraries(sentserver) +target_link_libraries(sentserver ${CMAKE_THREAD_LIBS_INIT}) set(sentclient_SRCS sentclient.cc) add_executable(sentclient ${sentclient_SRCS}) -target_link_libraries(sentclient) +target_link_libraries(sentclient ${CMAKE_THREAD_LIBS_INIT}) set(grammar_convert_SRCS grammar_convert.cc) add_executable(grammar_convert ${grammar_convert_SRCS}) |