summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2014-02-06 23:23:31 (GMT)
committerAlex Neundorf <neundorf@kde.org>2014-02-06 23:23:31 (GMT)
commitcab5ebd497b1acf109769d299779a41b16f9b7bf (patch)
treeb345d60a14600553b0c0daaadb2853a2aad8e01e /Modules
parent6abdc6c16acec3cb6601cc0bdeba4dec30857a02 (diff)
downloadCMake-cab5ebd497b1acf109769d299779a41b16f9b7bf.zip
CMake-cab5ebd497b1acf109769d299779a41b16f9b7bf.tar.gz
CMake-cab5ebd497b1acf109769d299779a41b16f9b7bf.tar.bz2
Intel compiler: add -isystem flag under Linux
This makes the SYSTEM keyword work with the Intel compiler under Linux. AFAIK this is supported neither under Windows nor OSX. Alex
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Linux-Intel-C.cmake1
-rw-r--r--Modules/Platform/Linux-Intel-CXX.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-Intel-C.cmake b/Modules/Platform/Linux-Intel-C.cmake
index d1694d6..449493a 100644
--- a/Modules/Platform/Linux-Intel-C.cmake
+++ b/Modules/Platform/Linux-Intel-C.cmake
@@ -1,2 +1,3 @@
include(Platform/Linux-Intel)
__linux_compiler_intel(C)
+set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem ")
diff --git a/Modules/Platform/Linux-Intel-CXX.cmake b/Modules/Platform/Linux-Intel-CXX.cmake
index 66df3ac..142b6cf 100644
--- a/Modules/Platform/Linux-Intel-CXX.cmake
+++ b/Modules/Platform/Linux-Intel-CXX.cmake
@@ -1,2 +1,3 @@
include(Platform/Linux-Intel)
__linux_compiler_intel(CXX)
+set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")