=== modified file 'Source/cmExtraEclipseCDT4Generator.cxx'
--- old/Source/cmExtraEclipseCDT4Generator.cxx	2012-05-24 17:38:13 +0000
+++ new/Source/cmExtraEclipseCDT4Generator.cxx	2012-06-03 15:57:06 +0000
@@ -34,6 +34,10 @@
   this->SupportedGlobalGenerators.push_back("MinGW Makefiles");
 //  this->SupportedGlobalGenerators.push_back("MSYS Makefiles");
 #endif
+// TODO: install a proxy Makefile or set "CMAKE_MAKE_PROGRAM" to ninja!
+#ifdef CMAKE_USE_NINJA
+  this->SupportedGlobalGenerators.push_back("Ninja");
+#endif
   this->SupportedGlobalGenerators.push_back("Unix Makefiles");
 
   this->SupportsVirtualFolders = true;
@@ -958,6 +962,11 @@
        it != this->GlobalGenerator->GetLocalGenerators().end();
        ++it)
     {
+    if (std::string("Ninja") == generator->GetName())
+      {
+      break;    // FIXME with Ninja it crashes! For now not relay needed! ck
+      }
+
     const cmTargets& targets = (*it)->GetMakefile()->GetTargets();
     cmMakefile* makefile=(*it)->GetMakefile();
     std::string subdir = (*it)->Convert(makefile->GetCurrentOutputDirectory(),

=== modified file 'Source/cmGlobalKdevelopGenerator.cxx'
--- old/Source/cmGlobalKdevelopGenerator.cxx	2011-08-16 21:01:47 +0000
+++ new/Source/cmGlobalKdevelopGenerator.cxx	2012-06-03 09:46:35 +0000
@@ -44,6 +44,9 @@
 :cmExternalMakefileProjectGenerator()
 {
   this->SupportedGlobalGenerators.push_back("Unix Makefiles");
+#ifdef CMAKE_USE_NINJA
+  this->SupportedGlobalGenerators.push_back("Ninja");
+#endif
 }
 
 void cmGlobalKdevelopGenerator::Generate()

=== modified file 'Source/cmNinjaNormalTargetGenerator.cxx'
--- old/Source/cmNinjaNormalTargetGenerator.cxx	2012-06-03 06:59:51 +0000
+++ new/Source/cmNinjaNormalTargetGenerator.cxx	2012-06-03 15:46:48 +0000
@@ -153,8 +153,13 @@
   // Select whether to use a response file for objects.
   std::string rspfile;
   const std::string cmakeLinkVar = std::string("CMAKE_") + this->TargetLinkLanguage;
+
+#ifdef _win32
+  bool useResponseFile = true;  // FIXME! fix for now! ck
+#else
   bool useResponseFile = GetMakefile()->IsOn(
                   (cmakeLinkVar + "_USE_RESPONSE_FILE_FOR_OBJECTS").c_str());
+#endif
 
   if (!this->GetGlobalGenerator()->HasRule(ruleName)) {
     cmLocalGenerator::RuleVariables vars;

=== modified file 'Source/cmNinjaTargetGenerator.cxx'
--- old/Source/cmNinjaTargetGenerator.cxx	2012-05-24 17:38:13 +0000
+++ new/Source/cmNinjaTargetGenerator.cxx	2012-06-03 13:51:37 +0000
@@ -312,7 +312,7 @@
   this->GetRulesFileStream()
     << "# Rules for language " << language << "\n\n";
   this->WriteCompileRule(language);
-  this->GetRulesFileStream() << "\n";
+  this->GetRulesFileStream() << "\n\n";
 }
 
 void

