mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 11:50:11 -05:00
cmake::GetCacheDefinition: Return cmProp
This commit is contained in:
@@ -3140,11 +3140,10 @@ std::string cmGlobalXCodeGenerator::GetOrCreateId(const std::string& name,
|
||||
const std::string& id)
|
||||
{
|
||||
std::string guidStoreName = cmStrCat(name, "_GUID_CMAKE");
|
||||
const char* storedGUID =
|
||||
this->CMakeInstance->GetCacheDefinition(guidStoreName);
|
||||
cmProp storedGUID = this->CMakeInstance->GetCacheDefinition(guidStoreName);
|
||||
|
||||
if (storedGUID) {
|
||||
return storedGUID;
|
||||
return *storedGUID;
|
||||
}
|
||||
|
||||
this->CMakeInstance->AddCacheEntry(guidStoreName, id.c_str(),
|
||||
|
||||
Reference in New Issue
Block a user