summaryrefslogtreecommitdiff
path: root/decoder
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
commite26256b9989d5ec8c7f7b3e4adb1aa2efe96c672 (patch)
tree39a71abe9107508f327a8ef10e23603e58d1c4ae /decoder
parent62b8b8e72c66da104e51d302ac41d1466b5d35ef (diff)
parent5eb2eb6693340c14766876bce705e3adb8733796 (diff)
Merge branch 'cmake' of https://github.com/redpony/cdec into cmake
Diffstat (limited to 'decoder')
-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