mirror of
https://github.com/reactos/CMake.git
synced 2025-02-21 20:40:44 +00:00

Since commit v3.1.0-rc1~564^2 (OS X: Use -iframework for system framework directories, 2014-05-05) we test the version of Clang to see if it supports -iframework. Fix the version test used for AppleClang since it uses a different version scheme than upstream Clang.
7 lines
203 B
CMake
7 lines
203 B
CMake
include(Platform/Darwin-Clang-C)
|
|
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.2)
|
|
set(CMAKE_C_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ")
|
|
else()
|
|
unset(CMAKE_C_SYSTEM_FRAMEWORK_SEARCH_FLAG)
|
|
endif()
|