cmGeneratorTarget::GetProperty: return cmProp

This commit is contained in:
Vitaly Stakhovsky
2020-04-29 11:00:00 -04:00
parent d63c442a6b
commit 36aba01223
32 changed files with 644 additions and 649 deletions
+2 -2
View File
@@ -110,9 +110,9 @@ void cmNinjaUtilityTargetGenerator::Generate(const std::string& config)
std::string command =
lg->BuildCommandLine(commands, "utility", this->GeneratorTarget);
std::string desc;
const char* echoStr = genTarget->GetProperty("EchoString");
cmProp echoStr = genTarget->GetProperty("EchoString");
if (echoStr) {
desc = echoStr;
desc = *echoStr;
} else {
desc = "Running utility command for " + this->GetTargetName();
}