summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-04-05 18:28:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-04-05 18:28:28 (GMT)
commitcc2585b1ebe39815250296d1e493931a4456d72b (patch)
tree5faf354ab11626f1b8d8954b7aeb175f50fe454a
parent3b16aa622e12f9fff46140291bb423d2b03cf90a (diff)
parent9c78ef13951de5a4b648823bb574e9436e6b7504 (diff)
downloadCMake-cc2585b1ebe39815250296d1e493931a4456d72b.zip
CMake-cc2585b1ebe39815250296d1e493931a4456d72b.tar.gz
CMake-cc2585b1ebe39815250296d1e493931a4456d72b.tar.bz2
Merge topic 'nonstandard-system-libarchive'
9c78ef1 COMP: Fix build against non-standard outside libarchive
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c40bc26..93822ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -325,6 +325,7 @@ MACRO (CMAKE_BUILD_UTILITIES)
IF(NOT LibArchive_FOUND)
MESSAGE(FATAL_ERROR "CMAKE_USE_SYSTEM_LIBARCHIVE is ON but LibArchive is not found!")
ENDIF()
+ SET(CMAKE_TAR_INCLUDES ${LibArchive_INCLUDE_DIRS})
SET(CMAKE_TAR_LIBRARIES ${LibArchive_LIBRARIES})
ELSE(CMAKE_USE_SYSTEM_LIBARCHIVE)
SET(HAVE_LIBZ 1)