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/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 1b03ac7da76c05bfa60e5fcf95aa2bfdf64f27cf (diff) | |
download | CMake-d298ae74701364232ea324975019e37db47a095c.zip CMake-d298ae74701364232ea324975019e37db47a095c.tar.gz CMake-d298ae74701364232ea324975019e37db47a095c.tar.bz2 |
cmake::GetCacheDefinition: Return cmProp
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 37a77fa..2c934e1 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -104,8 +104,8 @@ std::string cmGlobalUnixMakefileGenerator3::GetEditCacheCommand() const cmStateEnums::INTERNAL); } } - const char* edit_cmd = cm->GetCacheDefinition("CMAKE_EDIT_COMMAND"); - return edit_cmd ? edit_cmd : ""; + cmProp edit_cmd = cm->GetCacheDefinition("CMAKE_EDIT_COMMAND"); + return edit_cmd ? *edit_cmd : std::string(); } void cmGlobalUnixMakefileGenerator3::ComputeTargetObjectDirectory( |