cmState::GetCacheEntryProperty: return cmProp

This commit is contained in:
Vitaly Stakhovsky
2020-03-25 14:00:00 -04:00
parent ea54f8d441
commit a7f2ff16a4
11 changed files with 32 additions and 29 deletions
+3 -2
View File
@@ -393,12 +393,13 @@ bool HandleCacheMode(cmExecutionStatus& status, const std::string& name,
return false;
}
const char* value = nullptr;
cmProp value = nullptr;
if (status.GetMakefile().GetState()->GetCacheEntryValue(name)) {
value = status.GetMakefile().GetState()->GetCacheEntryProperty(
name, propertyName);
}
StoreResult(infoType, status.GetMakefile(), variable, value);
StoreResult(infoType, status.GetMakefile(), variable,
value ? value->c_str() : nullptr);
return true;
}