commit | 5f70aa2252b5cee16127697f5f690648bfccfeb2 | [log] [tgz] |
---|---|---|
author | tpg <tpgxyz@gmail.com> | Wed Feb 22 01:20:27 2017 +0100 |
committer | Martin Matuska <martin@matuska.org> | Wed Feb 22 01:21:39 2017 +0100 |
tree | 1b2d35e6dcee41b20760cd59768f4960a566ba1b | |
parent | d1dfc0fee096c78641951e5198fbc47fe16ffa2b [diff] |
CMake: fix HAVE_LZMA_STREAM_ENCODER_MT test Fixes #816
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a1132c..713295d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -462,6 +462,8 @@ IF(LIBLZMA_FOUND) SET(HAVE_LIBLZMA 1) SET(HAVE_LZMA_H 1) + SET(CMAKE_REQUIRED_INCLUDES ${LZMA_INCLUDE_DIR}) + SET(CMAKE_REQUIRED_LIBRARIES ${LZMA_LIBRARIES}) INCLUDE_DIRECTORIES(${LIBLZMA_INCLUDE_DIRS}) LIST(APPEND ADDITIONAL_LIBS ${LIBLZMA_LIBRARIES}) # Test if a macro is needed for the library.