summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Darwin-AppleClang-CXX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Darwin-AppleClang-CXX.cmake')
-rw-r--r--Modules/Platform/Darwin-AppleClang-CXX.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin-AppleClang-CXX.cmake b/Modules/Platform/Darwin-AppleClang-CXX.cmake
index 4e9e7c1..3fedf8c 100644
--- a/Modules/Platform/Darwin-AppleClang-CXX.cmake
+++ b/Modules/Platform/Darwin-AppleClang-CXX.cmake
@@ -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()