Configure libarchive build within CMake
Re-enable the option to build libarchive within CMake now that we have
imported a new snapshot. Force libarchive ENABLE_* cache options to the
values CMake needs. Set ENABLE_OPENSSL based on CMAKE_USE_OPENSSL to
preserve the behavior introduced in commit ee55a4f7
(Use OpenSSL only if
CMAKE_USE_OPENSSL, 2011-02-08).
This commit is contained in:
parent
ffdb37a4f7
commit
504660ea70
|
@ -270,7 +270,7 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
SET(CMAKE_ZLIB_INCLUDES ${ZLIB_INCLUDE_DIR})
|
SET(CMAKE_ZLIB_INCLUDES ${ZLIB_INCLUDE_DIR})
|
||||||
SET(CMAKE_ZLIB_LIBRARIES ${ZLIB_LIBRARIES})
|
SET(CMAKE_ZLIB_LIBRARIES ${ZLIB_LIBRARIES})
|
||||||
ELSE(CMAKE_USE_SYSTEM_ZLIB)
|
ELSE(CMAKE_USE_SYSTEM_ZLIB)
|
||||||
SET(CMAKE_ZLIB_INCLUDES)
|
SET(CMAKE_ZLIB_INCLUDES ${CMake_SOURCE_DIR}/Utilities)
|
||||||
SET(CMAKE_ZLIB_LIBRARIES cmzlib)
|
SET(CMAKE_ZLIB_LIBRARIES cmzlib)
|
||||||
ADD_SUBDIRECTORY(Utilities/cmzlib)
|
ADD_SUBDIRECTORY(Utilities/cmzlib)
|
||||||
CMAKE_SET_TARGET_FOLDER(cmzlib "Utilities/3rdParty")
|
CMAKE_SET_TARGET_FOLDER(cmzlib "Utilities/3rdParty")
|
||||||
|
@ -336,14 +336,14 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
SET(CMAKE_TAR_INCLUDES ${LibArchive_INCLUDE_DIRS})
|
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)
|
||||||
MESSAGE(FATAL_ERROR "Please enable CMAKE_USE_SYSTEM_LIBARCHIVE")
|
|
||||||
SET(HAVE_LIBZ 1)
|
|
||||||
SET(HAVE_ZLIB_H 1)
|
|
||||||
SET(ZLIB_INCLUDE_DIR ${CMAKE_ZLIB_INCLUDES})
|
SET(ZLIB_INCLUDE_DIR ${CMAKE_ZLIB_INCLUDES})
|
||||||
SET(ZLIB_LIBRARIES ${CMAKE_ZLIB_LIBRARIES})
|
|
||||||
SET(ZLIB_LIBRARY ${CMAKE_ZLIB_LIBRARIES})
|
SET(ZLIB_LIBRARY ${CMAKE_ZLIB_LIBRARIES})
|
||||||
SET(BUILD_ARCHIVE_WITHIN_CMAKE TRUE)
|
|
||||||
ADD_DEFINITIONS(-DLIBARCHIVE_STATIC)
|
ADD_DEFINITIONS(-DLIBARCHIVE_STATIC)
|
||||||
|
SET(ENABLE_NETTLE OFF CACHE INTERNAL "Enable use of Nettle")
|
||||||
|
SET(ENABLE_OPENSSL ${CMAKE_USE_OPENSSL} CACHE INTERNAL "Enable use of OpenSSL")
|
||||||
|
SET(ENABLE_XATTR OFF CACHE INTERNAL "Enable extended attribute support")
|
||||||
|
SET(ENABLE_ACL OFF CACHE INTERNAL "Enable ACL support")
|
||||||
|
SET(ENABLE_ICONV OFF CACHE INTERNAL "Enable iconv support")
|
||||||
ADD_SUBDIRECTORY(Utilities/cmlibarchive)
|
ADD_SUBDIRECTORY(Utilities/cmlibarchive)
|
||||||
CMAKE_SET_TARGET_FOLDER(cmlibarchive "Utilities/3rdParty")
|
CMAKE_SET_TARGET_FOLDER(cmlibarchive "Utilities/3rdParty")
|
||||||
SET(CMAKE_TAR_LIBRARIES cmlibarchive ${BZIP2_LIBRARIES})
|
SET(CMAKE_TAR_LIBRARIES cmlibarchive ${BZIP2_LIBRARIES})
|
||||||
|
|
Loading…
Reference in New Issue