From cab5ebd497b1acf109769d299779a41b16f9b7bf Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Fri, 7 Feb 2014 00:23:31 +0100 Subject: [PATCH] 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 --- Modules/Platform/Linux-Intel-C.cmake | 1 + Modules/Platform/Linux-Intel-CXX.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/Modules/Platform/Linux-Intel-C.cmake b/Modules/Platform/Linux-Intel-C.cmake index d1694d64a..449493a78 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 66df3ac2a..142b6cf5c 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 ")