]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix liblzma.h detect 875/head
authortpg <tpgxyz@gmail.com>
Thu, 23 Feb 2017 22:38:22 +0000 (23:38 +0100)
committertpg <tpgxyz@gmail.com>
Thu, 23 Feb 2017 22:38:22 +0000 (23:38 +0100)
CMakeLists.txt

index 9a1132cc72871884f407e7e122036f055a4bfb52..048847bb448f0c8ca03253b2cc384d879da84958 100644 (file)
@@ -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.