summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraSublimeTextGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-06 22:29:25 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-08 22:00:18 (GMT)
commit4ab2750c54adb09d147839687858aabe3cd988a7 (patch)
tree5e65bb636efca9bd1ca447d270882d6894b454b9 /Source/cmExtraSublimeTextGenerator.cxx
parentc8187f414bcc4668940c2e0fe40d361389efdbe5 (diff)
downloadCMake-4ab2750c54adb09d147839687858aabe3cd988a7.zip
CMake-4ab2750c54adb09d147839687858aabe3cd988a7.tar.gz
CMake-4ab2750c54adb09d147839687858aabe3cd988a7.tar.bz2
cmLocalGenerator: Add GetProjectName method.
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.cxx')
-rw-r--r--Source/cmExtraSublimeTextGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.cxx b/Source/cmExtraSublimeTextGenerator.cxx
index 11410a7..db8c470 100644
--- a/Source/cmExtraSublimeTextGenerator.cxx
+++ b/Source/cmExtraSublimeTextGenerator.cxx
@@ -79,7 +79,7 @@ void cmExtraSublimeTextGenerator::CreateProjectFile(
{
const cmMakefile* mf=lgs[0]->GetMakefile();
std::string outputDir=mf->GetCurrentBinaryDirectory();
- std::string projectName=mf->GetProjectName();
+ std::string projectName=lgs[0]->GetProjectName();
const std::string filename =
outputDir + "/" + projectName + ".sublime-project";
@@ -302,7 +302,7 @@ void cmExtraSublimeTextGenerator::
{
fout << ",\n\t";
}
- fout << "\t{\n\t\t\t\"name\": \"" << makefile->GetProjectName() << " - " <<
+ fout << "\t{\n\t\t\t\"name\": \"" << lg->GetProjectName() << " - " <<
targetName << "\",\n";
fout << "\t\t\t\"cmd\": [" <<
this->BuildMakeCommand(make, makefileName.c_str(), targetName) <<