From: Brad King Date: Wed, 18 Nov 2009 14:14:00 +0000 (-0500) Subject: Require CMake 2.6.3 or higher X-Git-Tag: v2.8.0~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8dabfb757363d35f127aeafb22aea372b81cfb3;p=thirdparty%2Flibarchive.git Require CMake 2.6.3 or higher Previously we required CMake 2.6.1 or higher, but CMake 2.6.3 provides component-wise VERSION_LESS, VERSION_GREATER, and VERSION_EQUAL tests in the if() command and the CMAKE_VERSION variable. Once the running CMake is known to be 2.6.3 or higher, tests against its version are simple. We also use the FATAL_ERROR option to CMAKE_MINIMUM_REQUIRED() to ensure that CMake 2.4 gives up with an error immediately. SVN-Revision: 1670 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a62e164a9..d51f4466e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ # PROJECT(libarchive C) # -CMAKE_MINIMUM_REQUIRED(VERSION 2.6.1) +CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/build/cmake") # # Version - read from 'version' file.