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
1 changed files with 1 additions and 1 deletions

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()