summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-03 20:10:50 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-03 20:10:50 (GMT)
commit7fbd4161d543b86f694bc75f2c31524a09729958 (patch)
treea7ecca14c9d691368bd645775b8d663b1ee453cb /Source/cmake.cxx
parentd9ec3bbe43237aed835bf31274e848f5b0c920ae (diff)
downloadCMake-7fbd4161d543b86f694bc75f2c31524a09729958.zip
CMake-7fbd4161d543b86f694bc75f2c31524a09729958.tar.gz
CMake-7fbd4161d543b86f694bc75f2c31524a09729958.tar.bz2
STYLE: name the external generator "KDevelop3 - Unix Makefiles" instead of "Unix Makefiles -
KDevelop3" -initialize Ignore to 0, crashes otherwise Alex
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 7bec758..6d7e398 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1422,7 +1422,6 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
void cmake::AddExtraGenerator(const char* name,
CreateExtraGeneratorFunctionType newFunction)
{
- this->ExtraGenerators[name] = newFunction;
cmExternalMakefileProjectGenerator* extraGenerator = newFunction();
const std::vector<std::string>& supportedGlobalGenerators =
extraGenerator->GetSupportedGlobalGenerators();
@@ -1448,7 +1447,12 @@ void cmake::AddDefaultExtraGenerators()
#endif
// e.g. eclipse ?
#ifdef CMAKE_USE_KDEVELOP
- this->AddExtraGenerator(cmGlobalKdevelopGenerator::GetActualName(), &cmGlobalKdevelopGenerator::New);
+ this->AddExtraGenerator(cmGlobalKdevelopGenerator::GetActualName(),
+ &cmGlobalKdevelopGenerator::New);
+ // for kdevelop also add the generator with just the name of the
+ // extra generator, since it was this way since cmake 2.2
+ this->ExtraGenerators[cmGlobalKdevelopGenerator::GetActualName()]
+ = &cmGlobalKdevelopGenerator::New;
#endif
}