From 43b9f184c2f9cacce2917577f9469f71f64885c5 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 22 Mar 2006 13:04:49 -0500 Subject: COMP: Fix apple bootstrap issues --- Source/cmBootstrapCommands.cxx | 2 ++ Source/cmCommands.cxx | 2 -- Source/cmake.cxx | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/cmBootstrapCommands.cxx b/Source/cmBootstrapCommands.cxx index c8769f0..7eafd34 100644 --- a/Source/cmBootstrapCommands.cxx +++ b/Source/cmBootstrapCommands.cxx @@ -43,6 +43,7 @@ #include "cmForEachCommand.cxx" #include "cmGetCMakePropertyCommand.cxx" #include "cmGetFilenameComponentCommand.cxx" +#include "cmGetSourceFilePropertyCommand.cxx" #include "cmIfCommand.cxx" #include "cmIncludeCommand.cxx" #include "cmIncludeDirectoryCommand.cxx" @@ -90,6 +91,7 @@ void GetBootstrapCommands(std::list& commands) commands.push_back(new cmForEachCommand); commands.push_back(new cmGetCMakePropertyCommand); commands.push_back(new cmGetFilenameComponentCommand); + commands.push_back(new cmGetSourceFilePropertyCommand); commands.push_back(new cmIfCommand); commands.push_back(new cmIncludeCommand); commands.push_back(new cmIncludeDirectoryCommand); diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx index 2ad50b1..f3bf189 100644 --- a/Source/cmCommands.cxx +++ b/Source/cmCommands.cxx @@ -27,7 +27,6 @@ #include "cmExportLibraryDependencies.cxx" #include "cmFLTKWrapUICommand.cxx" #include "cmGetDirectoryPropertyCommand.cxx" -#include "cmGetSourceFilePropertyCommand.cxx" #include "cmGetTargetPropertyCommand.cxx" #include "cmGetTestPropertyCommand.cxx" #include "cmIncludeExternalMSProjectCommand.cxx" @@ -82,7 +81,6 @@ void GetPredefinedCommands(std::list& commands.push_back(new cmExportLibraryDependenciesCommand); commands.push_back(new cmFLTKWrapUICommand); commands.push_back(new cmGetDirectoryPropertyCommand); - commands.push_back(new cmGetSourceFilePropertyCommand); commands.push_back(new cmGetTargetPropertyCommand); commands.push_back(new cmGetTestPropertyCommand); commands.push_back(new cmIncludeExternalMSProjectCommand); 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 // 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 # include # include -- cgit v0.12