Xcode: Add internal API to find xcodebuild

Teach the Xcode generator to compute the location of this tool or the
cmakexbuild wrapper.  Add internal APIs to get the locations on demand.

Use the "cmakexbuild" wrapper for Xcode < 4, and "xcodebuild" for modern
Xcode.
This commit is contained in:
Brad King
2015-01-28 13:31:18 -05:00
parent de4ccee75a
commit e4055a6144
2 changed files with 36 additions and 0 deletions
+5
View File
@@ -212,6 +212,11 @@ protected:
std::vector<cmXCodeObject*> XCodeObjects;
cmXCodeObject* RootObject;
private:
std::string const& GetXcodeBuildCommand();
std::string FindXcodeBuildCommand();
std::string XcodeBuildCommand;
bool XcodeBuildCommandInitialized;
void PrintCompilerAdvice(std::ostream&, std::string const&,
const char*) const {}