summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-06 13:16:53 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-06 13:16:53 (GMT)
commit7f7374e8189871289b604fcc8f109411bca793dd (patch)
tree0436c3f6addb3fa330e166c1aa6852712ded339c
parent0e497ef160377b0c6710cbca24016f999923495d (diff)
downloadCMake-7f7374e8189871289b604fcc8f109411bca793dd.zip
CMake-7f7374e8189871289b604fcc8f109411bca793dd.tar.gz
CMake-7f7374e8189871289b604fcc8f109411bca793dd.tar.bz2
BUG: Do not enable -isystem support for Xcode generator until it is implemented.
-rw-r--r--Modules/Platform/Darwin.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index 4ec3364..035e37c 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -48,6 +48,12 @@ IF(NOT XCODE)
SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-install_name")
ENDIF(NOT XCODE)
+# Xcode does not support -isystem yet.
+IF(XCODE)
+ SET(CMAKE_INCLUDE_SYSTEM_FLAG_C)
+ SET(CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
+ENDIF(XCODE)
+
SET(CMAKE_MacOSX_Content_COMPILE_OBJECT "\"${CMAKE_COMMAND}\" -E copy_if_different <SOURCE> <OBJECT>")
SET(CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS -w)