diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-06 22:29:25 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-08 22:00:18 (GMT) |
commit | 4ab2750c54adb09d147839687858aabe3cd988a7 (patch) | |
tree | 5e65bb636efca9bd1ca447d270882d6894b454b9 /Source/cmExtraCodeLiteGenerator.cxx | |
parent | c8187f414bcc4668940c2e0fe40d361389efdbe5 (diff) | |
download | CMake-4ab2750c54adb09d147839687858aabe3cd988a7.zip CMake-4ab2750c54adb09d147839687858aabe3cd988a7.tar.gz CMake-4ab2750c54adb09d147839687858aabe3cd988a7.tar.bz2 |
cmLocalGenerator: Add GetProjectName method.
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeLiteGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx index 496c1a8..8fb4dce 100644 --- a/Source/cmExtraCodeLiteGenerator.cxx +++ b/Source/cmExtraCodeLiteGenerator.cxx @@ -72,7 +72,7 @@ void cmExtraCodeLiteGenerator::Generate() mf->GetHomeOutputDirectory()) == 0) { workspaceOutputDir = mf->GetCurrentBinaryDirectory(); - workspaceProjectName = mf->GetProjectName(); + workspaceProjectName = it->second[0]->GetProjectName(); workspaceSourcePath = mf->GetHomeDirectory(); workspaceFileName = workspaceOutputDir+"/"; workspaceFileName += workspaceProjectName + ".workspace"; @@ -93,7 +93,7 @@ void cmExtraCodeLiteGenerator::Generate() // retrive project information const cmMakefile* mf = it->second[0]->GetMakefile(); std::string outputDir = mf->GetCurrentBinaryDirectory(); - std::string projectName = mf->GetProjectName(); + std::string projectName = it->second[0]->GetProjectName(); std::string filename = outputDir + "/" + projectName + ".project"; // Make the project file relative to the workspace @@ -123,7 +123,7 @@ void cmExtraCodeLiteGenerator::CreateProjectFile( { const cmMakefile* mf = lgs[0]->GetMakefile(); std::string outputDir = mf->GetCurrentBinaryDirectory(); - std::string projectName = mf->GetProjectName(); + std::string projectName = lgs[0]->GetProjectName(); std::string filename = outputDir + "/"; filename += projectName + ".project"; @@ -143,7 +143,7 @@ void cmExtraCodeLiteGenerator //////////////////////////////////// fout << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" - "<CodeLite_Project Name=\"" << mf->GetProjectName() + "<CodeLite_Project Name=\"" << lgs[0]->GetProjectName() << "\" InternalType=\"\">\n"; // Collect all used source files in the project |