1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Require libarchive 3.0.0 or later

Older versions do not provide archive_entry_copy_sourcepath_w.
This commit is contained in:
Gregor Jasny
2015-01-28 22:31:37 -08:00
committed by Brad King
parent de4ccee75a
commit 3526daf5a2

View File

@@ -336,7 +336,7 @@ macro (CMAKE_BUILD_UTILITIES)
#---------------------------------------------------------------------
# Build or use system libarchive for CMake and CTest.
if(CMAKE_USE_SYSTEM_LIBARCHIVE)
find_package(LibArchive)
find_package(LibArchive 3.0.0)
if(NOT LibArchive_FOUND)
message(FATAL_ERROR "CMAKE_USE_SYSTEM_LIBARCHIVE is ON but LibArchive is not found!")
endif()