diff options
author | Brad King <brad.king@kitware.com> | 2022-01-12 14:51:26 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-01-12 14:51:32 (GMT) |
commit | c0f0fe50bf382a1d7233817759bc4211db9d1dfa (patch) | |
tree | b4162fbe21b1c56627ac0ef646859eb47e5eff57 /Modules/Compiler | |
parent | 809206e1a619a1d9231b9e14494e4a2742f816a3 (diff) | |
parent | 3a8b6653dcd3b860957f6dfbe7d764b695b29d28 (diff) | |
download | CMake-c0f0fe50bf382a1d7233817759bc4211db9d1dfa.zip CMake-c0f0fe50bf382a1d7233817759bc4211db9d1dfa.tar.gz CMake-c0f0fe50bf382a1d7233817759bc4211db9d1dfa.tar.bz2 |
Merge topic 'msvc-isystem'
3a8b6653dc MSVC: Use -external:I flag without space to support Clang tools
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6855
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/MSVC-C.cmake | 2 | ||||
-rw-r--r-- | Modules/Compiler/MSVC-CXX.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/MSVC-C.cmake b/Modules/Compiler/MSVC-C.cmake index a53df46..df3691c 100644 --- a/Modules/Compiler/MSVC-C.cmake +++ b/Modules/Compiler/MSVC-C.cmake @@ -77,6 +77,6 @@ endif() # The `/external:I` flag was made non-experimental in 19.29.30036.3. if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29.30036.3) - set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-external:I ") + set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-external:I") set(_CMAKE_INCLUDE_SYSTEM_FLAG_C_WARNING "-external:W0 ") endif () diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake index bcaec69..17cbc3c 100644 --- a/Modules/Compiler/MSVC-CXX.cmake +++ b/Modules/Compiler/MSVC-CXX.cmake @@ -84,6 +84,6 @@ endif() # The `/external:I` flag was made non-experimental in 19.29.30036.3. if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29.30036.3) - set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-external:I ") + set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-external:I") set(_CMAKE_INCLUDE_SYSTEM_FLAG_CXX_WARNING "-external:W0 ") endif () |