[cmake-developers] [PATCH] Require libarchive 3.0.0 or later
Gregor Jasny
gjasny at googlemail.com
Thu Jan 29 01:36:01 EST 2015
Hello,
the libarchive shipped with RHEL6 is too old and does not provide
archive_entry_copy_sourcepath_w. This patch tells cmake to look for
version 3.0.0 or later.
Thanks,
Gregor
-------------- next part --------------
From cff52ed7841fccb25836e14f45f433173fddee99 Mon Sep 17 00:00:00 2001
From: Gregor Jasny <Gregor.Jasny at citrix.com>
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 8ad1be8..e61621d 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()
--
1.8.5.5
More information about the cmake-developers
mailing list