Require libarchive 3.0.0 or later
Older versions do not provide archive_entry_copy_sourcepath_w.
This commit is contained in:
parent
de4ccee75a
commit
3526daf5a2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue