diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
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 |