From 638e28db2b2146e8920ec105792d2b03a0de5c3e Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 9 Apr 2015 00:18:27 -0700 Subject: fix kenlm's use of compression libraries --- klm/lm/CMakeLists.txt | 8 ++++---- klm/lm/builder/CMakeLists.txt | 4 ++-- klm/util/CMakeLists.txt | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'klm') diff --git a/klm/lm/CMakeLists.txt b/klm/lm/CMakeLists.txt index fcd288c1..ceb814c6 100644 --- a/klm/lm/CMakeLists.txt +++ b/klm/lm/CMakeLists.txt @@ -7,11 +7,11 @@ add_executable(build_binary ${build_binary_SRCS}) set(ngram_query_SRCS query_main.cc) add_executable(ngram_query ${ngram_query_SRCS}) 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}) + target_link_libraries(build_binary klm klm_util klm_util_double ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${RT_LIBRARIES}) + target_link_libraries(ngram_query klm klm_util klm_util_double ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${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) + target_link_libraries(build_binary klm klm_util klm_util_double ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES}) + target_link_libraries(ngram_query klm klm_util klm_util_double ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES}) endif (HAVE_RT) diff --git a/klm/lm/builder/CMakeLists.txt b/klm/lm/builder/CMakeLists.txt index 5fb1b2d2..e52875cb 100644 --- a/klm/lm/builder/CMakeLists.txt +++ b/klm/lm/builder/CMakeLists.txt @@ -24,8 +24,8 @@ set(lmplz_SRCS sort.hh) add_executable(lmplz ${lmplz_SRCS}) -target_link_libraries(lmplz klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES}) +target_link_libraries(lmplz klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES}) set(dump_counts_SRCS print.cc dump_counts_main.cc) add_executable(dump_counts ${dump_counts_SRCS}) -target_link_libraries(dump_counts klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES}) +target_link_libraries(dump_counts klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES}) diff --git a/klm/util/CMakeLists.txt b/klm/util/CMakeLists.txt index bef1db78..23eaffe9 100644 --- a/klm/util/CMakeLists.txt +++ b/klm/util/CMakeLists.txt @@ -3,7 +3,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) set(cat_compressed_SRCS cat_compressed_main.cc) add_executable(cat_compressed ${cat_compressed_SRCS}) -target_link_libraries(cat_compressed klm_util) +target_link_libraries(cat_compressed klm_util ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES}) set(klm_util_STAT_SRCS bit_packing.cc -- cgit v1.2.3