summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-04-16 18:47:44 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-04-16 18:47:44 (GMT)
commit99b3152a60d9049d261da1dc3e70916aae09fa45 (patch)
tree9321dbecb789826a92fceebef4afa5fe27941ec5 /Source/cmake.cxx
parent304582d2085cc2ff91fab3f6e5abbae9316ef934 (diff)
downloadCMake-99b3152a60d9049d261da1dc3e70916aae09fa45.zip
CMake-99b3152a60d9049d261da1dc3e70916aae09fa45.tar.gz
CMake-99b3152a60d9049d261da1dc3e70916aae09fa45.tar.bz2
add COdeWarrior back in for testing
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index a12ab83..4f6eb78 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -40,6 +40,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include "cmGlobalCodeWarriorGenerator.h"
#endif
@@ -652,6 +653,9 @@ void cmake::GetRegisteredGenerators(std::vector<std::string>& names)
names.push_back(cmGlobalBorlandMakefileGenerator::GetActualName());
names.push_back(cmGlobalNMakeMakefileGenerator::GetActualName());
#else
+#ifdef __APPLE__
+ names.push_back(cmGlobalCodeWarriorGenerator::GetActualName());
+#endif
names.push_back(cmGlobalUnixMakefileGenerator::GetActualName());
#endif
}
@@ -681,6 +685,13 @@ cmGlobalGenerator* cmake::CreateGlobalGenerator(const char* name)
ret->SetCMakeInstance(this);
}
#else
+#ifdef __APPLE__
+ if (!strcmp(name,cmGlobalCodeWarriorGenerator::GetActualName()))
+ {
+ ret = new cmGlobalCodeWarriorGenerator;
+ ret->SetCMakeInstance(this);
+ }
+#endif
if (!strcmp(name,cmGlobalUnixMakefileGenerator::GetActualName()))
{
ret = new cmGlobalUnixMakefileGenerator;