]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
CMake: fix HAVE_LZMA_STREAM_ENCODER_MT test
authortpg <tpgxyz@gmail.com>
Wed, 22 Feb 2017 00:20:27 +0000 (01:20 +0100)
committerMartin Matuska <martin@matuska.org>
Wed, 22 Feb 2017 00:21:39 +0000 (01:21 +0100)
Fixes #816

CMakeLists.txt

index 9a1132cc72871884f407e7e122036f055a4bfb52..713295d535b3f08a7d447ca6db5b6888c8117faa 100644 (file)
@@ -462,6 +462,8 @@ ENDIF()
 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.