Enable detection of non-Apple clang Clang features

Ups macOS cmake requirement to 3.3 and sets policy 25, to differentiate compiler features between AppleClang and plain ole' clang.
This commit is contained in:
Benitoite 2017-11-13 09:51:21 -08:00 committed by GitHub
parent bd9592cb1f
commit 46e4dece2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,8 @@
if(WIN32) if(WIN32)
cmake_minimum_required(VERSION 2.8.4) cmake_minimum_required(VERSION 2.8.4)
elseif(APPLE)
cmake_minimum_required(VERSION 3.3)
CMAKE_POLICY(SET CMP0025 NEW)
else() else()
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
endif() endif()