summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-03-14 18:23:14 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-03-14 18:23:14 (GMT)
commit3abbf15a5a01cef0e204f24173dc57c8d35ad35c (patch)
tree1bc007894bc15de0b6b9067b4f0af1c673a72c56 /Source/cmake.cxx
parentfe41711a0824e1a1379a34739c7c7947c8017c79 (diff)
downloadCMake-3abbf15a5a01cef0e204f24173dc57c8d35ad35c.zip
CMake-3abbf15a5a01cef0e204f24173dc57c8d35ad35c.tar.gz
CMake-3abbf15a5a01cef0e204f24173dc57c8d35ad35c.tar.bz2
ENH: make xcode compile only on apple
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index a07fae0..ce33770 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -52,7 +52,6 @@
#else
#endif
#include "cmGlobalUnixMakefileGenerator.h"
-#include "cmGlobalXCodeGenerator.h"
#ifdef CMAKE_USE_KDEVELOP
# include "cmGlobalKdevelopGenerator.h"
@@ -61,6 +60,8 @@
#include <stdlib.h> // required for atoi
#ifdef __APPLE__
+# include "cmGlobalXCodeGenerator.h"
+# define CMAKE_USE_XCODE 1
# include <sys/types.h>
# include <sys/time.h>
# include <sys/resource.h>
@@ -1413,8 +1414,10 @@ void cmake::AddDefaultGenerators()
#endif
m_Generators[cmGlobalUnixMakefileGenerator::GetActualName()] =
&cmGlobalUnixMakefileGenerator::New;
+#ifdef CMAKE_USE_XCODE
m_Generators[cmGlobalXCodeGenerator::GetActualName()] =
&cmGlobalXCodeGenerator::New;
+#endif
#ifdef CMAKE_USE_KDEVELOP
m_Generators[cmGlobalKdevelopGenerator::GetActualName()] =
&cmGlobalKdevelopGenerator::New;