summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Help/release/dev/clang-windows-system-includes.rst5
-rw-r--r--Modules/Compiler/Clang.cmake1
2 files changed, 6 insertions, 0 deletions
diff --git a/Help/release/dev/clang-windows-system-includes.rst b/Help/release/dev/clang-windows-system-includes.rst
new file mode 100644
index 0000000..d1a3be2
--- /dev/null
+++ b/Help/release/dev/clang-windows-system-includes.rst
@@ -0,0 +1,5 @@
+clang-windows-system-includes
+-----------------------------
+
+* The ``Clang`` compiler gained support for handling system include directories
+ when running on Windows.
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)