summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-22 18:04:49 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-22 18:04:49 (GMT)
commit43b9f184c2f9cacce2917577f9469f71f64885c5 (patch)
treecc06f70ce213992f992f739496b6ed3b401977be /Source/cmake.cxx
parent36e272843154c6ea475fd3c19a39a0d27dbcafa5 (diff)
downloadCMake-43b9f184c2f9cacce2917577f9469f71f64885c5.zip
CMake-43b9f184c2f9cacce2917577f9469f71f64885c5.tar.gz
CMake-43b9f184c2f9cacce2917577f9469f71f64885c5.tar.bz2
COMP: Fix apple bootstrap issues
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index a66e83b..7ed09a9 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -66,9 +66,11 @@
#include <stdlib.h> // required for atoi
-#ifdef __APPLE__
-# include "cmGlobalXCodeGenerator.h"
-# define CMAKE_USE_XCODE 1
+#if defined( __APPLE__ )
+# if defined(CMAKE_BUILD_WITH_CMAKE)
+# include "cmGlobalXCodeGenerator.h"
+# define CMAKE_USE_XCODE 1
+# endif
# include <sys/types.h>
# include <sys/time.h>
# include <sys/resource.h>