Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-11-09 15:21:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-09 15:37:53 +0300
commitff3cf93405e63fa367f64412bcfe96b382b24b38 (patch)
treec41f546c00386528aa6db00cd43207716d0ecbd5 /CMakeLists.txt
parent56933373e29e1ed076bfb8ab4b50c447e66f00ff (diff)
Increase CMake minimum version to 3.0
This allows us to use newer features of CMake, and less hassles having to test & support older versions.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt30
1 files changed, 3 insertions, 27 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b5a0ed81e5..38a9037ef14 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,12 +45,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
endif()
endif()
-cmake_minimum_required(VERSION 2.8)
-
-if(NOT (${CMAKE_VERSION} VERSION_LESS 3.0))
- # keep until CMake-3.0 is min requirement
- cmake_policy(SET CMP0043 OLD)
-endif()
+cmake_minimum_required(VERSION 3.0.0)
if(NOT EXECUTABLE_OUTPUT_PATH)
set(FIRST_RUN TRUE)
@@ -76,18 +71,8 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO NDEBU
#-----------------------------------------------------------------------------
# Set policy
-# see "cmake --help-policy CMP0003"
-# So library linking is more sane
-cmake_policy(SET CMP0003 NEW)
-
-# So BUILDINFO and BLENDERPATH strings are automatically quoted
-cmake_policy(SET CMP0005 NEW)
-
-# So syntax problems are errors
-cmake_policy(SET CMP0010 NEW)
-
-# Input directories must have CMakeLists.txt
-cmake_policy(SET CMP0014 NEW)
+# Simplify variable reference and escape sequence evaluation
+cmake_policy(SET CMP0053 NEW)
#-----------------------------------------------------------------------------
# Load some macros.
@@ -499,11 +484,6 @@ endif()
# Apple
if(APPLE)
- if(${CMAKE_VERSION} VERSION_LESS 3.0) # else breaks setting CMP0043 policy
- cmake_minimum_required(VERSION 2.8.8)
- cmake_policy(VERSION 2.8.8)
- endif()
-
if(NOT CMAKE_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES x86_64 CACHE STRING
"Choose the architecture you want to build Blender for: i386, x86_64 or ppc"
@@ -513,12 +493,8 @@ if(APPLE)
execute_process(COMMAND uname -r OUTPUT_VARIABLE MAC_SYS) # check for actual system-version
if(${MAC_SYS} MATCHES 15)
set(OSX_SYSTEM 10.11)
- # throw an error here, older cmake cannot handle 2 digit subversion!
- cmake_minimum_required(VERSION 3.0.0)
elseif(${MAC_SYS} MATCHES 14)
set(OSX_SYSTEM 10.10)
- # throw an error here, older cmake cannot handle 2 digit subversion!
- cmake_minimum_required(VERSION 3.0.0)
elseif(${MAC_SYS} MATCHES 13)
set(OSX_SYSTEM 10.9)
elseif(${MAC_SYS} MATCHES 12)