From: tpg Date: Thu, 23 Feb 2017 22:38:22 +0000 (+0100) Subject: fix liblzma.h detect X-Git-Tag: v3.3.1~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F875%2Fhead;p=thirdparty%2Flibarchive.git fix liblzma.h detect --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a1132cc7..048847bb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -462,6 +462,8 @@ ENDIF() 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.