summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Clang-CXX.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-11 19:35:52 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-07 14:48:44 (GMT)
commit59b5fdd37c87dd27205e3756d17a186e02e0d326 (patch)
treecd0f1ce44e52605cb5a0f6531c700d54af698383 /Modules/Compiler/Clang-CXX.cmake
parent7f7d6a40302e208d7a082d1800431fc8803c0b79 (diff)
downloadCMake-59b5fdd37c87dd27205e3756d17a186e02e0d326.zip
CMake-59b5fdd37c87dd27205e3756d17a186e02e0d326.tar.gz
CMake-59b5fdd37c87dd27205e3756d17a186e02e0d326.tar.bz2
Don't load Clang-CXX from AppleClang-CXX.
The Clang-CXX module is going to get version-specific checks, and the version system for AppleClang is not the same as Clang.
Diffstat (limited to 'Modules/Compiler/Clang-CXX.cmake')
-rw-r--r--Modules/Compiler/Clang-CXX.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang-CXX.cmake b/Modules/Compiler/Clang-CXX.cmake
index 0372e18..ab1b766 100644
--- a/Modules/Compiler/Clang-CXX.cmake
+++ b/Modules/Compiler/Clang-CXX.cmake
@@ -4,3 +4,8 @@ __compiler_clang(CXX)
if(NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")
endif()
+
+cmake_policy(GET CMP0025 appleClangPolicy)
+if(NOT appleClangPolicy STREQUAL NEW)
+ return()
+endif()