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:
authorJens Verwiebe <info@jensverwiebe.de>2014-09-12 16:42:13 +0400
committerJens Verwiebe <info@jensverwiebe.de>2014-09-12 16:42:25 +0400
commitd939341b65b073b8bfdc73b55d2893b77b93fc62 (patch)
tree8500328b5756bc988446a316cefa1f20709c2ac4 /CMakeLists.txt
parent26e476b7e13b6e7c6c4b1ce017e00fb3c9cc9de5 (diff)
OSX: Fix cmake3 usage
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c063e24174..a3a7a4ca516 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -316,8 +316,10 @@ endif()
option(WITH_GTESTS "Enable GTest unit testing" OFF)
if(APPLE)
- cmake_minimum_required(VERSION 2.8.8)
- cmake_policy(VERSION 2.8.8)
+ 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