cmSourceFile::GetPropertyForUser: return cmProp

also fix GetSafeProperty() return type
This commit is contained in:
Vitaly Stakhovsky
2020-11-04 10:00:00 -05:00
parent 622ac065d2
commit c7b50349de
5 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -391,7 +391,7 @@ bool HandleSourceMode(cmExecutionStatus& status, const std::string& name,
if (cmSourceFile* sf =
directory_makefile.GetOrCreateSource(source_file_absolute_path)) {
return StoreResult(infoType, status.GetMakefile(), variable,
sf->GetPropertyForUser(propertyName));
cmToCStr(sf->GetPropertyForUser(propertyName)));
}
status.SetError(
cmStrCat("given SOURCE name that could not be found or created: ",