summaryrefslogtreecommitdiff
path: root/training/utils/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-03-05 15:15:38 -0500
committerChris Dyer <redpony@gmail.com>2015-03-05 15:15:38 -0500
commite26256b9989d5ec8c7f7b3e4adb1aa2efe96c672 (patch)
tree39a71abe9107508f327a8ef10e23603e58d1c4ae /training/utils/CMakeLists.txt
parent62b8b8e72c66da104e51d302ac41d1466b5d35ef (diff)
parent5eb2eb6693340c14766876bce705e3adb8733796 (diff)
Merge branch 'cmake' of https://github.com/redpony/cdec into cmake
Diffstat (limited to 'training/utils/CMakeLists.txt')
-rw-r--r--training/utils/CMakeLists.txt6
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})