summaryrefslogtreecommitdiff
path: root/decoder/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
commit154b799d148276b09aa740a67e0afdf94281c452 (patch)
tree92141cb1bf7d9ccf644e1bcb9d25c6e8c97c88a6 /decoder/CMakeLists.txt
parent91434e55cd1d1a8b810c0b84d684c42706564043 (diff)
parent55b75d9f94a36de2d3f7eb9eb132b8286ddd2723 (diff)
Merge branch 'cmake' of https://github.com/redpony/cdec into cmake
Diffstat (limited to 'decoder/CMakeLists.txt')
-rw-r--r--decoder/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/decoder/CMakeLists.txt b/decoder/CMakeLists.txt
index 591ab7b3..ac07e9fe 100644
--- a/decoder/CMakeLists.txt
+++ b/decoder/CMakeLists.txt
@@ -5,6 +5,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
PROJECT(decoder C CXX)
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
find_package(FLEX REQUIRED)
FLEX_TARGET(RuleLexer rule_lexer.ll ${CMAKE_CURRENT_BINARY_DIR}/rule_lexer.cc)
@@ -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