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.
This commit is contained in:
parent
7f7d6a4030
commit
59b5fdd37c
|
@ -1 +1,6 @@
|
|||
include(Compiler/Clang-CXX)
|
||||
include(Compiler/Clang)
|
||||
__compiler_clang(CXX)
|
||||
|
||||
if(NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
|
||||
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")
|
||||
endif()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue