diff options
author | Chris Dyer <redpony@gmail.com> | 2015-04-08 21:38:00 -0700 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2015-04-08 21:38:00 -0700 |
commit | 72ade065ba8470219db5a0a26830b79f6171bd10 (patch) | |
tree | f79bb814cae99e25890cc83de99b510f883c0c2f /CMakeLists.txt | |
parent | ccf276822159b204ebf2d451938d3e04950009aa (diff) |
flags for zlib etccmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
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 |