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.
This commit is contained in:
Ben Boeckel 2013-03-26 13:21:37 -04:00 committed by Brad King
parent 567a7af311
commit 4d668f3311
1 changed files with 1 additions and 0 deletions

View File

@ -23,4 +23,5 @@ include(Compiler/GNU)
macro(__compiler_clang lang) macro(__compiler_clang lang)
__compiler_gnu(${lang}) __compiler_gnu(${lang})
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE") set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
endmacro() endmacro()