summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-14 19:11:20 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-14 19:11:20 (GMT)
commit1dd9c4ab6fa9ced2276433dbce081d9cff838d1e (patch)
tree805b2a05cc18c2fe79fa7bedf73dfbf11a5e658d /Source
parentd94b23885a6646571904c9f41599ffde487d6314 (diff)
downloadCMake-1dd9c4ab6fa9ced2276433dbce081d9cff838d1e.zip
CMake-1dd9c4ab6fa9ced2276433dbce081d9cff838d1e.tar.gz
CMake-1dd9c4ab6fa9ced2276433dbce081d9cff838d1e.tar.bz2
cmNinjaTargetGenerator: Clarify GetScanBuildStatement condition
Use the `compilePP` variable directly rather than relying on callers to make `compilePP == !ppFileName.empty()`.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 6543485..c8dc304 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -1162,7 +1162,7 @@ cmNinjaBuild GetScanBuildStatement(const std::string& ruleName,
scanBuild.Variables["DYNDEP_INTERMEDIATE_FILE"] = ddiFile;
// Outputs of the scan/preprocessor build statement.
- if (!ppFileName.empty()) {
+ if (compilePP) {
scanBuild.Outputs.push_back(ppFileName);
scanBuild.ImplicitOuts.push_back(ddiFile);
} else {