summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Clang.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2013-03-26 17:21:37 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-28 14:32:24 (GMT)
commit4d668f3311896d1b7f06365b3b96e1724a417229 (patch)
tree3ebc66f7aa7022535bc04c0afb3853e72373b5c7 /Modules/Compiler/Clang.cmake
parent567a7af31170aeeb9cc3f420ae2173b021031335 (diff)
downloadCMake-4d668f3311896d1b7f06365b3b96e1724a417229.zip
CMake-4d668f3311896d1b7f06365b3b96e1724a417229.tar.gz
CMake-4d668f3311896d1b7f06365b3b96e1724a417229.tar.bz2
Clang: Add -isystem flag support everywhere
In GNU.cmake, -isystem is not used if APPLE is set. However, Clang has pretty much always supported -isystem, so we should always use it. In the future, GNU.cmake should do a version check to see if -isystem is supported.
Diffstat (limited to 'Modules/Compiler/Clang.cmake')
-rw-r--r--Modules/Compiler/Clang.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake
index 75a971d..c6cd8f8 100644
--- a/Modules/Compiler/Clang.cmake
+++ b/Modules/Compiler/Clang.cmake
@@ -23,4 +23,5 @@ include(Compiler/GNU)
macro(__compiler_clang lang)
__compiler_gnu(${lang})
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
endmacro()