Browse Source

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
Alex Neundorf 11 years ago
parent
commit
cab5ebd497
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Modules/Platform/Linux-Intel-C.cmake
  2. 1 0
      Modules/Platform/Linux-Intel-CXX.cmake

+ 1 - 0
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 ")

+ 1 - 0
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 ")