summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-08-09 16:52:35 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-08-09 16:52:35 (GMT)
commit3941b74de4043a1a8a173a61c4f5efe0a8a55d33 (patch)
tree71fe8bc9953bbccd0bdd0375c4020bfe6b7e4aca /Source/cmGlobalGenerator.cxx
parent7e3250da2fa0155a8c83b3aadef0407a701f2953 (diff)
downloadCMake-3941b74de4043a1a8a173a61c4f5efe0a8a55d33.zip
CMake-3941b74de4043a1a8a173a61c4f5efe0a8a55d33.tar.gz
CMake-3941b74de4043a1a8a173a61c4f5efe0a8a55d33.tar.bz2
Refactor: cmGlobalGenerator::GetGlobalSetting returns cmProp
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index aae6e35..3561deb 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1179,10 +1179,10 @@ void cmGlobalGenerator::FillExtensionToLanguageMap(const std::string& l,
}
}
-const char* cmGlobalGenerator::GetGlobalSetting(std::string const& name) const
+cmProp cmGlobalGenerator::GetGlobalSetting(std::string const& name) const
{
assert(!this->Makefiles.empty());
- return cmToCStr(this->Makefiles[0]->GetDefinition(name));
+ return this->Makefiles[0]->GetDefinition(name);
}
bool cmGlobalGenerator::GlobalSettingIsOn(std::string const& name) const
@@ -1195,7 +1195,7 @@ std::string cmGlobalGenerator::GetSafeGlobalSetting(
std::string const& name) const
{
assert(!this->Makefiles.empty());
- return this->Makefiles[0]->GetSafeDefinition(name);
+ return this->Makefiles[0]->GetDefinition(name);
}
bool cmGlobalGenerator::IgnoreFile(const char* ext) const