summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraEclipseCDT4Generator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-15 10:14:13 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-15 10:14:13 (GMT)
commit2fb07fc44c49da70a609fbc0df013c0301e9f36a (patch)
treeb0df34212593867478c577962699b33afab20cd7 /Source/cmExtraEclipseCDT4Generator.cxx
parent518c06585b07c1b7a189374c9196fc1a7fc3502d (diff)
downloadCMake-2fb07fc44c49da70a609fbc0df013c0301e9f36a.zip
CMake-2fb07fc44c49da70a609fbc0df013c0301e9f36a.tar.gz
CMake-2fb07fc44c49da70a609fbc0df013c0301e9f36a.tar.bz2
Ninja: Eclipse and KDevelop fixes for ninja
Thx to Claus Klein
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r--Source/cmExtraEclipseCDT4Generator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx
index 65077b3..af0a95b 100644
--- a/Source/cmExtraEclipseCDT4Generator.cxx
+++ b/Source/cmExtraEclipseCDT4Generator.cxx
@@ -34,6 +34,9 @@ cmExtraEclipseCDT4Generator
this->SupportedGlobalGenerators.push_back("MinGW Makefiles");
// this->SupportedGlobalGenerators.push_back("MSYS Makefiles");
#endif
+#ifdef CMAKE_USE_NINJA
+ this->SupportedGlobalGenerators.push_back("Ninja");
+#endif
this->SupportedGlobalGenerators.push_back("Unix Makefiles");
this->SupportsVirtualFolders = true;
@@ -1067,9 +1070,8 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
}
//insert rules for compiling, preprocessing and assembling individual files
- cmLocalUnixMakefileGenerator3* lumg=(cmLocalUnixMakefileGenerator3*)*it;
std::vector<std::string> objectFileTargets;
- lumg->GetIndividualFileTargets(objectFileTargets);
+ (*it)->GetIndividualFileTargets(objectFileTargets);
for(std::vector<std::string>::const_iterator fit=objectFileTargets.begin();
fit != objectFileTargets.end();
++fit)