summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-15 12:53:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-15 12:54:32 (GMT)
commitc0c5f924fe46fcf83603117689b372cb8520c4bb (patch)
tree3abb6b0d1b361ce133ecdc8df41a679e7e7e37c7 /Source/cmNinjaTargetGenerator.cxx
parent3449c18c36a9acf29dfbb228ee76059cc4b9127f (diff)
parent3bbe95f58a8fb83e56ca9023ef01b9e70b391b05 (diff)
downloadCMake-c0c5f924fe46fcf83603117689b372cb8520c4bb.zip
CMake-c0c5f924fe46fcf83603117689b372cb8520c4bb.tar.gz
CMake-c0c5f924fe46fcf83603117689b372cb8520c4bb.tar.bz2
Merge topic 'refactor-iwyu-code'
3bbe95f5 Clean up iwyu code to not be one big if statement. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1247
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 3760fc1..3c1463a 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -619,7 +619,7 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang)
(cppcheck && *cppcheck)) {
std::string run_iwyu = this->GetLocalGenerator()->ConvertToOutputFormat(
cmSystemTools::GetCMakeCommand(), cmOutputConverter::SHELL);
- run_iwyu += " -E __run_iwyu";
+ run_iwyu += " -E __run_co_compile";
if (iwyu && *iwyu) {
run_iwyu += " --iwyu=";
run_iwyu += this->GetLocalGenerator()->EscapeForShell(iwyu);