diff options
author | Brad King <brad.king@kitware.com> | 2021-02-10 12:45:53 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-10 12:46:33 (GMT) |
commit | 691e8ac480c1f819f700b41552fabc42ffe8abac (patch) | |
tree | 953d46b6ef677eb70b8108675d3aaad038b93a73 /Modules/Platform/Windows-Clang.cmake | |
parent | 1356b94a87ba79f9a2aa8876d969364356dd9076 (diff) | |
parent | 2fc5e5dba903da4c845b41f60fa9adb59c7cfbd1 (diff) | |
download | CMake-691e8ac480c1f819f700b41552fabc42ffe8abac.zip CMake-691e8ac480c1f819f700b41552fabc42ffe8abac.tar.gz CMake-691e8ac480c1f819f700b41552fabc42ffe8abac.tar.bz2 |
Merge topic 'clang-imsvc'
2fc5e5dba9 Clang: Use -imsvc for system include only with MSVC-like front-end
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Thomas Bernard <thomas@famillebernardgouriou.fr>
Merge-request: !5792
Diffstat (limited to 'Modules/Platform/Windows-Clang.cmake')
-rw-r--r-- | Modules/Platform/Windows-Clang.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake index dc41572..c508ac1 100644 --- a/Modules/Platform/Windows-Clang.cmake +++ b/Modules/Platform/Windows-Clang.cmake @@ -174,6 +174,7 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC" macro(__windows_compiler_clang_base lang) set(_COMPILE_${lang} "${_COMPILE_${lang}_MSVC}") __windows_compiler_msvc(${lang}) + set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-imsvc ") endmacro() else() cmake_policy(GET CMP0091 __WINDOWS_CLANG_CMP0091) |