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 | 42e6a2888f986b062c6391b6bef6ef817c6b8a68 (patch) | |
tree | fa5c9828928adf5a025575082e911c42a7019105 /decoder | |
parent | 3d2a60701f053fc35130711e88d9fcb29f29e274 (diff) |
deal with libdl
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/decoder/CMakeLists.txt b/decoder/CMakeLists.txt index 591ab7b3..f7683887 100644 --- a/decoder/CMakeLists.txt +++ b/decoder/CMakeLists.txt @@ -3,6 +3,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../mteval) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../klm) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + PROJECT(decoder C CXX) find_package(FLEX REQUIRED) @@ -145,7 +147,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}) +target_link_libraries(cdec libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBDL_LIBRARIES}) set(TEST_SRCS grammar_test.cc |