]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Require CMake 2.6.3 or higher
authorBrad King <brad.king@kitware.com>
Wed, 18 Nov 2009 14:14:00 +0000 (09:14 -0500)
committerBrad King <brad.king@kitware.com>
Wed, 18 Nov 2009 14:14:00 +0000 (09:14 -0500)
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

CMakeLists.txt

index a62e164a90e92263a2685ac7f456bc6e99fe8dba..d51f4466e3c80973b6f1a5b0c6d968b200b62de0 100644 (file)
@@ -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.