summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-04-02 00:19:42 -0400
committerChris Dyer <redpony@gmail.com>2015-04-02 00:19:42 -0400
commitb5d04f4c8a734796c347e5cb5a5053dd75696533 (patch)
treebf1be2c265df5fa6397798d0646fabc568a2b632
parente26256b9989d5ec8c7f7b3e4adb1aa2efe96c672 (diff)
fix libRT use
-rw-r--r--klm/lm/CMakeLists.txt16
1 files changed, 11 insertions, 5 deletions
diff --git a/klm/lm/CMakeLists.txt b/klm/lm/CMakeLists.txt
index b95cddee..fcd288c1 100644
--- a/klm/lm/CMakeLists.txt
+++ b/klm/lm/CMakeLists.txt
@@ -1,15 +1,21 @@
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
-find_package(RT)
+find_package(RT QUIET)
set(build_binary_SRCS build_binary_main.cc)
add_executable(build_binary ${build_binary_SRCS})
-target_link_libraries(build_binary klm klm_util klm_util_double z ${RT_LIBRARIES})
-
-
set(ngram_query_SRCS query_main.cc)
add_executable(ngram_query ${ngram_query_SRCS})
-target_link_libraries(ngram_query klm klm_util klm_util_double z ${RT_LIBRARIES})
+if (HAVE_RT)
+ target_link_libraries(build_binary klm klm_util klm_util_double z ${RT_LIBRARIES})
+ target_link_libraries(ngram_query klm klm_util klm_util_double z ${RT_LIBRARIES})
+else (HAVE_RT)
+ target_link_libraries(build_binary klm klm_util klm_util_double z)
+ target_link_libraries(ngram_query klm klm_util klm_util_double z)
+endif (HAVE_RT)
+
+
+
set(klm_STAT_SRCS
bhiksha.hh