diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-19 22:05:18 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-19 22:05:18 (GMT) |
commit | 8ca558db9b1c5580334489fc56989d9c71bc4efc (patch) | |
tree | 6be6bbba84e953a0c5a78759c3bab77a19775d81 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 9062e6d922956bd374d626498a382d02804bbf83 (diff) | |
download | CMake-8ca558db9b1c5580334489fc56989d9c71bc4efc.zip CMake-8ca558db9b1c5580334489fc56989d9c71bc4efc.tar.gz CMake-8ca558db9b1c5580334489fc56989d9c71bc4efc.tar.bz2 |
ENH: make it so that bootstrap does not use xml parser
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 1dece4a..3e0809e 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -23,8 +23,9 @@ #include "cmGeneratedFileStream.h" #include "cmSourceFile.h" #include "cmOrderLinkDirectories.h" -#include "cmXMLParser.h" +#if defined(CMAKE_BUILD_WITH_CMAKE) +#include "cmXMLParser.h" // parse the xml file storing the installed version of Xcode on // the machine @@ -57,6 +58,7 @@ public: std::string m_Key; std::string m_Data; }; +#endif //TODO @@ -77,6 +79,7 @@ cmGlobalXCodeGenerator::cmGlobalXCodeGenerator() //---------------------------------------------------------------------------- cmGlobalGenerator* cmGlobalXCodeGenerator::New() { +#if defined(CMAKE_BUILD_WITH_CMAKE) cmXcodeVersionParser parser; parser.ParseFile("/Developer/Applications/Xcode.app/Contents/version.plist"); if(parser.m_Version == 15) @@ -91,6 +94,11 @@ cmGlobalGenerator* cmGlobalXCodeGenerator::New() } return new cmGlobalXCode21Generator; +#else + std::cerr + << "CMake should be built with cmake to use XCode, default to Xcode 1.5\n"; + return new cmGlobalXCodeGenerator; +#endif } //---------------------------------------------------------------------------- |