summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-04-09 00:18:27 -0700
committerChris Dyer <redpony@gmail.com>2015-04-09 00:18:27 -0700
commit638e28db2b2146e8920ec105792d2b03a0de5c3e (patch)
tree80995ea6379462ca1b9c8aeb8e5559111a9613d8 /CMakeLists.txt
parentb5aaa40ef7c9d216ae905b76f50e68a8f94656c9 (diff)
fix kenlm's use of compression libraries
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 12e65119..89275948 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 2.8)
-add_definitions(-DKENLM_MAX_ORDER=6)
+add_definitions(-DKENLM_MAX_ORDER=6 -DHAVE_CONFIG_H)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_FLAGS "-Wall -std=c++11 -O3")
set(METEOR_JAR "" CACHE FILEPATH "Path to meteor.jar")
@@ -17,6 +17,11 @@ find_package(BZip2)
if(BZIP2_FOUND)
set(HAVE_BZLIB 1)
endif(BZIP2_FOUND)
+find_package(LibLZMA)
+if(LIBLZMA_FOUND)
+ set(HAVE_XZLIB 1)
+endif(LIBLZMA_FOUND)
+
find_package(LibDL REQUIRED)
# for pycdec