From e5563e592fef9ebb86dc48ca718a7b1fdfce6ab3 Mon Sep 17 00:00:00 2001 From: "william.r.dieter" Date: Tue, 9 Feb 2021 19:23:34 -0500 Subject: 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 --- Modules/Compiler/IntelLLVM.cmake | 1 - 1 file changed, 1 deletion(-) 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() -- cgit v0.12