mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
cmNinjaTargetGenerator: use .clear() to empty out some strings
This commit is contained in:
@@ -542,9 +542,9 @@ cmNinjaRule GetScanRule(
|
||||
// Scanning always uses a depfile for preprocessor dependencies.
|
||||
if (deptype == "msvc"_s) {
|
||||
rule.DepType = deptype;
|
||||
rule.DepFile = "";
|
||||
rule.DepFile.clear();
|
||||
} else {
|
||||
rule.DepType = ""; // no deps= for multiple outputs
|
||||
rule.DepType.clear(); // no deps= for multiple outputs
|
||||
rule.DepFile = "$DEP_FILE";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user