Browse Source

COMP: Fix build against non-standard outside libarchive

Use the include directories reported by find_package(LibArchive).
Brad King 14 years ago
parent
commit
9c78ef1395
1 changed files with 1 additions and 0 deletions
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -325,6 +325,7 @@ MACRO (CMAKE_BUILD_UTILITIES)
     IF(NOT LibArchive_FOUND)
     IF(NOT LibArchive_FOUND)
       MESSAGE(FATAL_ERROR "CMAKE_USE_SYSTEM_LIBARCHIVE is ON but LibArchive is not found!")
       MESSAGE(FATAL_ERROR "CMAKE_USE_SYSTEM_LIBARCHIVE is ON but LibArchive is not found!")
     ENDIF()
     ENDIF()
+    SET(CMAKE_TAR_INCLUDES ${LibArchive_INCLUDE_DIRS})
     SET(CMAKE_TAR_LIBRARIES ${LibArchive_LIBRARIES})
     SET(CMAKE_TAR_LIBRARIES ${LibArchive_LIBRARIES})
   ELSE(CMAKE_USE_SYSTEM_LIBARCHIVE)
   ELSE(CMAKE_USE_SYSTEM_LIBARCHIVE)
     SET(HAVE_LIBZ 1)
     SET(HAVE_LIBZ 1)