summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-04-16 19:40:24 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-04-16 19:40:24 (GMT)
commitaf055f6f6d188e11529580cb7c3ea33dd9c35d30 (patch)
treed98ce8880fb0832dcc958269ba57ae768039d245 /Source/cmake.cxx
parent99b3152a60d9049d261da1dc3e70916aae09fa45 (diff)
downloadCMake-af055f6f6d188e11529580cb7c3ea33dd9c35d30.zip
CMake-af055f6f6d188e11529580cb7c3ea33dd9c35d30.tar.gz
CMake-af055f6f6d188e11529580cb7c3ea33dd9c35d30.tar.bz2
minor fix
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 4f6eb78..f3e355b 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -40,8 +40,10 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
+#if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cmGlobalCodeWarriorGenerator.h"
#endif
+#endif
void cmNeedBackwardsCompatibility(const std::string& variable,
@@ -653,7 +655,7 @@ void cmake::GetRegisteredGenerators(std::vector<std::string>& names)
names.push_back(cmGlobalBorlandMakefileGenerator::GetActualName());
names.push_back(cmGlobalNMakeMakefileGenerator::GetActualName());
#else
-#ifdef __APPLE__
+#if defined(__APPLE__) && defined(CMAKE_BUILD_WITH_CMAKE)
names.push_back(cmGlobalCodeWarriorGenerator::GetActualName());
#endif
names.push_back(cmGlobalUnixMakefileGenerator::GetActualName());
@@ -685,7 +687,7 @@ cmGlobalGenerator* cmake::CreateGlobalGenerator(const char* name)
ret->SetCMakeInstance(this);
}
#else
-#ifdef __APPLE__
+#if defined(__APPLE__) && defined(CMAKE_BUILD_WITH_CMAKE)
if (!strcmp(name,cmGlobalCodeWarriorGenerator::GetActualName()))
{
ret = new cmGlobalCodeWarriorGenerator;