From 4d668f3311896d1b7f06365b3b96e1724a417229 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 26 Mar 2013 13:21:37 -0400 Subject: 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. --- Modules/Compiler/Clang.cmake | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v0.12