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 --- decoder/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'decoder') diff --git a/decoder/CMakeLists.txt b/decoder/CMakeLists.txt index b49d6477..ad800588 100644 --- a/decoder/CMakeLists.txt +++ b/decoder/CMakeLists.txt @@ -151,7 +151,7 @@ add_library(libcdec STATIC ${libcdec_SRCS}) set(cdec_SRCS cdec.cc) add_executable(cdec ${cdec_SRCS}) -target_link_libraries(cdec libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBDL_LIBRARIES}) +target_link_libraries(cdec libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${LIBDL_LIBRARIES}) set(TEST_SRCS grammar_test.cc @@ -169,7 +169,7 @@ foreach(testSrc ${TEST_SRCS}) add_executable(${testName} ${testSrc}) #link to Boost libraries AND your targets and dependencies - target_link_libraries(${testName} libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES}) + target_link_libraries(${testName} libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES}) #I like to move testing binaries into a testBin directory set_target_properties(${testName} PROPERTIES @@ -181,5 +181,3 @@ foreach(testSrc ${TEST_SRCS}) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endforeach(testSrc) - - -- cgit v1.2.3