From 1dd9c4ab6fa9ced2276433dbce081d9cff838d1e Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 14 Jun 2021 15:11:20 -0400 Subject: cmNinjaTargetGenerator: Clarify GetScanBuildStatement condition Use the `compilePP` variable directly rather than relying on callers to make `compilePP == !ppFileName.empty()`. --- Source/cmNinjaTargetGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v0.12