summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IntelLLVM-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/IntelLLVM-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/IntelLLVM-CXX.cmake')
-rw-r--r--Modules/Compiler/IntelLLVM-CXX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/IntelLLVM-CXX.cmake b/Modules/Compiler/IntelLLVM-CXX.cmake
index 9799888..cae1f11 100644
--- a/Modules/Compiler/IntelLLVM-CXX.cmake
+++ b/Modules/Compiler/IntelLLVM-CXX.cmake
@@ -4,6 +4,7 @@ __compiler_intel_llvm(CXX)
if("x${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "xMSVC")
set(CMAKE_CXX_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -TP)
set(CMAKE_CXX_CLANG_TIDY_DRIVER_MODE "cl")
+ set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE_DRIVER_MODE "cl")
if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER)
AND CMAKE_GENERATOR MATCHES "Makefiles|WMake"
AND CMAKE_DEPFILE_FLAGS_CXX)