diff options
author | PigeonF <fnoegip@gmail.com> | 2021-09-08 17:08:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-10 13:53:31 (GMT) |
commit | ccfe1b0b401863a8ac9ef07bb88ef970af587edc (patch) | |
tree | 677d05150c8e1605f2b4fe5d0df841260abc2579 /Modules/Compiler/MSVC-CXX.cmake | |
parent | cf5ed709915bde5cef4a649ca2255833cc7afcd3 (diff) | |
download | CMake-ccfe1b0b401863a8ac9ef07bb88ef970af587edc.zip CMake-ccfe1b0b401863a8ac9ef07bb88ef970af587edc.tar.gz CMake-ccfe1b0b401863a8ac9ef07bb88ef970af587edc.tar.bz2 |
IWYU: Add `--driver-mode=cl` when applicable
We already do this for `clang-tidy`.
Fixes: #16554
Diffstat (limited to 'Modules/Compiler/MSVC-CXX.cmake')
-rw-r--r-- | Modules/Compiler/MSVC-CXX.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake index 09fe851..9bb7722 100644 --- a/Modules/Compiler/MSVC-CXX.cmake +++ b/Modules/Compiler/MSVC-CXX.cmake @@ -4,6 +4,7 @@ include(Compiler/CMakeCommonCompilerMacros) set(CMAKE_CXX_CLANG_TIDY_DRIVER_MODE "cl") +set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE_DRIVER_MODE "cl") if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0.24215.1 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10) OR |