Commit bb61c2d0 authored by Andrew Fuller's avatar Andrew Fuller
Browse files

Clang: use -imsvc for system include dirs when running on Windows

Fixes #17808
parent b16a3f33
clang-windows-system-includes
-----------------------------
* The ``Clang`` compiler gained support for handling system include directories
when running on Windows.
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment