diff --git a/Source/cmCommandArgumentsHelper.cxx b/Source/cmCommandArgumentsHelper.cxx index 15523542b..3fb564218 100644 --- a/Source/cmCommandArgumentsHelper.cxx +++ b/Source/cmCommandArgumentsHelper.cxx @@ -123,6 +123,7 @@ cmCAStringVector::cmCAStringVector(cmCommandArgumentsHelper* args, const char* key, cmCommandArgumentGroup* group) :cmCommandArgument(args, key, group) +,Ignore(0) { if ((key==0) || (*key==0)) { diff --git a/Source/cmExternalMakefileProjectGenerator.cxx b/Source/cmExternalMakefileProjectGenerator.cxx index e1a8bcf1b..21a4032c8 100644 --- a/Source/cmExternalMakefileProjectGenerator.cxx +++ b/Source/cmExternalMakefileProjectGenerator.cxx @@ -26,12 +26,12 @@ std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName( std::string fullName; if (globalGenerator) { - fullName = globalGenerator; if (extraGenerator && *extraGenerator) { + fullName = extraGenerator; fullName += " - "; - fullName += extraGenerator; } + fullName += globalGenerator; } return fullName; } diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 7bec758db..6d7e39870 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1422,7 +1422,6 @@ int cmake::ExecuteCMakeCommand(std::vector& args) void cmake::AddExtraGenerator(const char* name, CreateExtraGeneratorFunctionType newFunction) { - this->ExtraGenerators[name] = newFunction; cmExternalMakefileProjectGenerator* extraGenerator = newFunction(); const std::vector& 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 }