summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorAndrew Fuller <afuller@teradici.com>2020-09-16 17:06:46 (GMT)
committerAndrew Fuller <afuller@teradici.com>2020-09-16 17:06:46 (GMT)
commitbb61c2d024d508e623813423de3404c63a2232b9 (patch)
tree83d83c59d889bfaa3a6d534bd4557376d13913cc /Modules/Compiler
parentb16a3f33011719632241fe7dd63ef1f72cad0b06 (diff)
downloadCMake-bb61c2d024d508e623813423de3404c63a2232b9.zip
CMake-bb61c2d024d508e623813423de3404c63a2232b9.tar.gz
CMake-bb61c2d024d508e623813423de3404c63a2232b9.tar.bz2
Clang: use -imsvc for system include dirs when running on Windows
Fixes #17808
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/Clang.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake
index c43265d..27692c2 100644
--- a/Modules/Compiler/Clang.cmake
+++ b/Modules/Compiler/Clang.cmake
@@ -19,6 +19,7 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_Fortran_SIMULATE_ID}" STREQUAL "xMSVC")
macro(__compiler_clang lang)
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-imsvc ")
endmacro()
else()
include(Compiler/GNU)