summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorwilliam.r.dieter <william.r.dieter@intel.com>2021-02-10 00:23:34 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-10 12:55:00 (GMT)
commite5563e592fef9ebb86dc48ca718a7b1fdfce6ab3 (patch)
treeb331aa21f5605e0d55a68bc3e8f78c2d92b08a9a /Modules/Compiler
parent22902cb38cdc934cb113269ef89ee30fba11391c (diff)
downloadCMake-e5563e592fef9ebb86dc48ca718a7b1fdfce6ab3.zip
CMake-e5563e592fef9ebb86dc48ca718a7b1fdfce6ab3.tar.gz
CMake-e5563e592fef9ebb86dc48ca718a7b1fdfce6ab3.tar.bz2
IntelLLVM: Remove unsupported -imsvc system include flag
`clang-cl` supports the `-imsvc` flag to tell the compiler an include directory is intended for system paths. `icx` does not accept this flag, even on MSVC platforms, so do not tell CMake that it exists. Fixes: #21801 Signed-off-by: william.r.dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/IntelLLVM.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/Compiler/IntelLLVM.cmake b/Modules/Compiler/IntelLLVM.cmake
index 43eb13a..14b7ad8 100644
--- a/Modules/Compiler/IntelLLVM.cmake
+++ b/Modules/Compiler/IntelLLVM.cmake
@@ -18,7 +18,6 @@ set(__pch_header_OBJCXX "objective-c++-header")
if(CMAKE_HOST_WIN32)
# MSVC-like
macro(__compiler_intel_llvm lang)
- set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-imsvc ")
if(NOT "x${lang}" STREQUAL "xFortran")
set(CMAKE_${lang}_COMPILE_OPTIONS_INVALID_PCH -Winvalid-pch)
endif()