summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-04-08 21:38:37 -0700
committerChris Dyer <redpony@gmail.com>2015-04-08 21:38:37 -0700
commitd18a8f8495ad4c910660be128c0f6843593f4999 (patch)
tree8cf74b2e27c2a16d787aabaeda6b635a6c3b7003 /CMakeLists.txt
parent3bfdcd7fc797819217928146016579499a2376d4 (diff)
parent3599bd55b75d4e2d80401a4f0247a2d757716aae (diff)
Merge pull request #72 from redpony/cmake
flags for zlib etc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 934c69e6..12e65119 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,13 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
#### packages
find_package(ZLIB REQUIRED)
-find_package(BZip2 REQUIRED)
+if(ZLIB_FOUND)
+ set(HAVE_ZLIB 1)
+endif(ZLIB_FOUND)
+find_package(BZip2)
+if(BZIP2_FOUND)
+ set(HAVE_BZLIB 1)
+endif(BZIP2_FOUND)
find_package(LibDL REQUIRED)
# for pycdec