From d8dabfb757363d35f127aeafb22aea372b81cfb3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 18 Nov 2009 09:14:00 -0500 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.47.3