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/cmExtraKateGenerator.cxx | |
parent | c8187f414bcc4668940c2e0fe40d361389efdbe5 (diff) | |
download | CMake-4ab2750c54adb09d147839687858aabe3cd988a7.zip CMake-4ab2750c54adb09d147839687858aabe3cd988a7.tar.gz CMake-4ab2750c54adb09d147839687858aabe3cd988a7.tar.bz2 |
cmLocalGenerator: Add GetProjectName method.
Diffstat (limited to 'Source/cmExtraKateGenerator.cxx')
-rw-r--r-- | Source/cmExtraKateGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmExtraKateGenerator.cxx b/Source/cmExtraKateGenerator.cxx index f83b5cf..126e3e1 100644 --- a/Source/cmExtraKateGenerator.cxx +++ b/Source/cmExtraKateGenerator.cxx @@ -46,9 +46,9 @@ cmExtraKateGenerator::cmExtraKateGenerator() void cmExtraKateGenerator::Generate() { - const cmMakefile* mf - = this->GlobalGenerator->GetLocalGenerators()[0]->GetMakefile(); - this->ProjectName = this->GenerateProjectName(mf->GetProjectName(), + cmLocalGenerator* lg = this->GlobalGenerator->GetLocalGenerators()[0]; + const cmMakefile* mf = lg->GetMakefile(); + this->ProjectName = this->GenerateProjectName(lg->GetProjectName(), mf->GetSafeDefinition("CMAKE_BUILD_TYPE"), this->GetPathBasename(mf->GetHomeOutputDirectory())); this->UseNinja = (this->GlobalGenerator->GetName() == "Ninja"); |