summaryrefslogtreecommitdiff
path: root/Modules/Platform/Darwin-AppleClang-C.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Darwin-AppleClang-C.cmake')
-rw-r--r--Modules/Platform/Darwin-AppleClang-C.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin-AppleClang-C.cmake b/Modules/Platform/Darwin-AppleClang-C.cmake
new file mode 100644
index 000000000..3216b2909
--- /dev/null
+++ b/Modules/Platform/Darwin-AppleClang-C.cmake
@@ -0,0 +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()