summaryrefslogtreecommitdiff
path: root/Source/cmExtraSublimeTextGenerator.cxx
diff options
context:
space:
mode:
authorvvs31415 <vvs31415@gitlab.org>2020-09-28 09:00:00 -0700
committervvs31415 <vvs31415@gitlab.org>2020-09-28 09:32:22 -0700
commitd298ae74701364232ea324975019e37db47a095c (patch)
tree13e03834f686c627c712e9c9a7cfc8aaaddf68b7 /Source/cmExtraSublimeTextGenerator.cxx
parent1b03ac7da76c05bfa60e5fcf95aa2bfdf64f27cf (diff)
downloadcmake-d298ae74701364232ea324975019e37db47a095c.tar.gz
cmake::GetCacheDefinition: Return cmProp
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.cxx')
-rw-r--r--Source/cmExtraSublimeTextGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.cxx b/Source/cmExtraSublimeTextGenerator.cxx
index 3e265a0df7..1c7e4b1684 100644
--- a/Source/cmExtraSublimeTextGenerator.cxx
+++ b/Source/cmExtraSublimeTextGenerator.cxx
@@ -446,13 +446,13 @@ bool cmExtraSublimeTextGenerator::Open(const std::string& bindir,
const std::string& projectName,
bool dryRun)
{
- const char* sublExecutable =
+ cmProp sublExecutable =
this->GlobalGenerator->GetCMakeInstance()->GetCacheDefinition(
"CMAKE_SUBLIMETEXT_EXECUTABLE");
if (!sublExecutable) {
return false;
}
- if (cmIsNOTFOUND(sublExecutable)) {
+ if (cmIsNOTFOUND(*sublExecutable)) {
return false;
}
@@ -462,5 +462,5 @@ bool cmExtraSublimeTextGenerator::Open(const std::string& bindir,
}
return cmSystemTools::RunSingleCommand(
- { sublExecutable, "--project", filename });
+ { *sublExecutable, "--project", filename });
}