Merge topic 'osx-iframework'

e68f0cb3 OS X: Use -iframework with AppleClang only on version >= 4.2
This commit is contained in:
Brad King 2015-07-23 08:47:23 -04:00 committed by CMake Topic Stage
commit afed519337
2 changed files with 10 additions and 0 deletions

View File

@ -1 +1,6 @@
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()

View File

@ -1 +1,6 @@
include(Platform/Darwin-Clang-CXX)
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.2)
set(CMAKE_CXX_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ")
else()
unset(CMAKE_CXX_SYSTEM_FRAMEWORK_SEARCH_FLAG)
endif()