diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 8 |
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> |