Features: Only require AppleClang policy to be NEW on APPLE.

This commit is contained in:
Stephen Kelly 2014-05-14 23:55:34 +02:00
parent 775458dede
commit 5c04dfe465
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ if(NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
endif()
cmake_policy(GET CMP0025 appleClangPolicy)
if(NOT appleClangPolicy STREQUAL NEW)
if(APPLE AND NOT appleClangPolicy STREQUAL NEW)
return()
endif()