summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Intel-CXX.cmake
diff options
context:
space:
mode:
authorPigeonF <fnoegip@gmail.com>2021-09-08 17:08:28 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-10 13:53:31 (GMT)
commitccfe1b0b401863a8ac9ef07bb88ef970af587edc (patch)
tree677d05150c8e1605f2b4fe5d0df841260abc2579 /Modules/Compiler/Intel-CXX.cmake
parentcf5ed709915bde5cef4a649ca2255833cc7afcd3 (diff)
downloadCMake-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/Intel-CXX.cmake')
-rw-r--r--Modules/Compiler/Intel-CXX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/Intel-CXX.cmake b/Modules/Compiler/Intel-CXX.cmake
index 37f339a..7c9cca9 100644
--- a/Modules/Compiler/Intel-CXX.cmake
+++ b/Modules/Compiler/Intel-CXX.cmake
@@ -16,6 +16,7 @@ endif()
if("x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
set(CMAKE_CXX_CLANG_TIDY_DRIVER_MODE "cl")
+ set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE_DRIVER_MODE "cl")
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0.0)
set(CMAKE_CXX20_STANDARD_COMPILE_OPTION "-Qstd=c++20")