Require CMake 2.8.2 or higher to build CMake
Update the requirement specified in the top-level CMakeLists.txt file.
Drop the special-case minimum required version of 2.8.0 because the new
minimum subsumes it.
Revert commit 6c611c6b
(libarchive: Restore CMake 2.6.3 as minimum
version, 2012-01-05) since our requirement now subsumes libarchive's.
This commit is contained in:
parent
a7d0fb1470
commit
d960de2f54
|
@ -1,6 +1,6 @@
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# CMake - Cross Platform Makefile Generator
|
# CMake - Cross Platform Makefile Generator
|
||||||
# Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
|
# Copyright 2000-2012 Kitware, Inc., Insight Software Consortium
|
||||||
#
|
#
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
# Distributed under the OSI-approved BSD License (the "License");
|
||||||
# see accompanying file Copyright.txt for details.
|
# see accompanying file Copyright.txt for details.
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
# See the License for more information.
|
# See the License for more information.
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2 FATAL_ERROR)
|
||||||
SET(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
|
SET(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
|
||||||
PROJECT(CMake)
|
PROJECT(CMake)
|
||||||
|
|
||||||
|
@ -324,10 +324,9 @@ MACRO (CMAKE_BUILD_UTILITIES)
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# Build or use system libarchive for CMake and CTest.
|
# Build or use system libarchive for CMake and CTest.
|
||||||
IF(CMAKE_USE_SYSTEM_LIBARCHIVE)
|
IF(CMAKE_USE_SYSTEM_LIBARCHIVE)
|
||||||
IF(EXISTS ${CMAKE_ROOT}/Modules/FindLibArchive.cmake)
|
IF(EXISTS ${CMAKE_ROOT}/Modules/FindLibArchive.cmake) # added in 2.8.3
|
||||||
FIND_PACKAGE(LibArchive)
|
FIND_PACKAGE(LibArchive)
|
||||||
ELSE()
|
ELSE()
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR)
|
|
||||||
INCLUDE(${CMake_SOURCE_DIR}/Modules/FindLibArchive.cmake)
|
INCLUDE(${CMake_SOURCE_DIR}/Modules/FindLibArchive.cmake)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF(NOT LibArchive_FOUND)
|
IF(NOT LibArchive_FOUND)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
PROJECT(libarchive C)
|
PROJECT(libarchive C)
|
||||||
#
|
#
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
|
||||||
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake")
|
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/cmake")
|
||||||
if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${libarchive_BINARY_DIR}/bin)
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${libarchive_BINARY_DIR}/bin)
|
||||||
|
|
Loading…
Reference in New Issue