diff options
author | Brad King <brad.king@kitware.com> | 2021-06-14 19:11:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-14 19:11:20 (GMT) |
commit | 1dd9c4ab6fa9ced2276433dbce081d9cff838d1e (patch) | |
tree | 805b2a05cc18c2fe79fa7bedf73dfbf11a5e658d /Source | |
parent | d94b23885a6646571904c9f41599ffde487d6314 (diff) | |
download | CMake-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.cxx | 2 |
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 { |