summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorvvs31415 <vvs31415@gitlab.org>2020-09-28 16:00:00 (GMT)
committervvs31415 <vvs31415@gitlab.org>2020-09-28 16:32:22 (GMT)
commitd298ae74701364232ea324975019e37db47a095c (patch)
tree13e03834f686c627c712e9c9a7cfc8aaaddf68b7 /Source/cmGlobalXCodeGenerator.cxx
parent1b03ac7da76c05bfa60e5fcf95aa2bfdf64f27cf (diff)
downloadCMake-d298ae74701364232ea324975019e37db47a095c.zip
CMake-d298ae74701364232ea324975019e37db47a095c.tar.gz
CMake-d298ae74701364232ea324975019e37db47a095c.tar.bz2
cmake::GetCacheDefinition: Return cmProp
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index b57bdbc..b78f0a0 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -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(),