From 3526daf5a2667d4bf8aee442d6e73f8b71ea6efc Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Wed, 28 Jan 2015 22:31:37 -0800 Subject: [PATCH] Require libarchive 3.0.0 or later Older versions do not provide archive_entry_copy_sourcepath_w. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ad1be83b..e61621d14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()