cmNinjaTargetGenerator: Clarify GetScanBuildStatement condition
Use the `compilePP` variable directly rather than relying on callers to make `compilePP == !ppFileName.empty()`.
This commit is contained in:
parent
d94b23885a
commit
1dd9c4ab6f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user