mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-10 23:43:58 +03:00
cmNinjaTargetGenerator: Clarify GetScanBuildStatement condition
Use the `compilePP` variable directly rather than relying on callers to make `compilePP == !ppFileName.empty()`.
This commit is contained in:
1 parent
d94b23885a
commit
1dd9c4ab6f
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user