commit | d96e7f9eff46ea3e1cc7e1784ad1264bee45602e | [log] [tgz] |
---|---|---|
author | tpg <tpgxyz@gmail.com> | Thu Feb 23 23:38:22 2017 +0100 |
committer | tpg <tpgxyz@gmail.com> | Thu Feb 23 23:38:22 2017 +0100 |
tree | e1d464edde3cf8ace726f51d4dc5a72e0697a224 | |
parent | 525f55c9b8dcfb0cfe1075ba4b1014443c7c3bb6 [diff] |
fix liblzma.h detect
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a1132c..048847b 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 ${LIBLZMA_INCLUDE_DIR}) + SET(CMAKE_REQUIRED_LIBRARIES ${LIBLZMA_LIBRARIES}) INCLUDE_DIRECTORIES(${LIBLZMA_INCLUDE_DIRS}) LIST(APPEND ADDITIONAL_LIBS ${LIBLZMA_LIBRARIES}) # Test if a macro is needed for the library.