diff options
author | vvs31415 <vvs31415@gitlab.org> | 2020-09-28 16:00:00 (GMT) |
---|---|---|
committer | vvs31415 <vvs31415@gitlab.org> | 2020-09-28 16:32:22 (GMT) |
commit | d298ae74701364232ea324975019e37db47a095c (patch) | |
tree | 13e03834f686c627c712e9c9a7cfc8aaaddf68b7 /Source/cmake.cxx | |
parent | 1b03ac7da76c05bfa60e5fcf95aa2bfdf64f27cf (diff) | |
download | CMake-d298ae74701364232ea324975019e37db47a095c.zip CMake-d298ae74701364232ea324975019e37db47a095c.tar.gz CMake-d298ae74701364232ea324975019e37db47a095c.tar.bz2 |
cmake::GetCacheDefinition: Return cmProp
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index bca938e..014a707 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2000,10 +2000,9 @@ std::string cmake::StripExtension(const std::string& file) const return file; } -const char* cmake::GetCacheDefinition(const std::string& name) const +cmProp cmake::GetCacheDefinition(const std::string& name) const { - cmProp p = this->State->GetInitializedCacheValue(name); - return p ? p->c_str() : nullptr; + return this->State->GetInitializedCacheValue(name); } void cmake::AddScriptingCommands() |