diff options
author | Brad King <brad.king@kitware.com> | 2009-09-23 12:48:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-23 12:48:39 (GMT) |
commit | e55bbab88bb93a51e29f6e4831f238b1c218e9b1 (patch) | |
tree | 629b2add65dc54795c711a5c487a025bd63f5f08 /Source/cmGlobalXCodeGenerator.h | |
parent | b7142e9214b05aa793d6ad12ce1eb7caa234539d (diff) | |
download | CMake-e55bbab88bb93a51e29f6e4831f238b1c218e9b1.zip CMake-e55bbab88bb93a51e29f6e4831f238b1c218e9b1.tar.gz CMake-e55bbab88bb93a51e29f6e4831f238b1c218e9b1.tar.bz2 |
Teach Xcode generator to set XCODE_VERSION
We set the variable 'XCODE_VERSION' in the CMake language to the Xcode
version string (e.g. "3.1.2"). Platform config files may use it later.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h index 189d7fb..adc675b 100644 --- a/Source/cmGlobalXCodeGenerator.h +++ b/Source/cmGlobalXCodeGenerator.h @@ -33,10 +33,9 @@ class cmSourceGroup; class cmGlobalXCodeGenerator : public cmGlobalGenerator { public: - cmGlobalXCodeGenerator(); + cmGlobalXCodeGenerator(std::string const& version); static cmGlobalGenerator* New(); - void SetVersion(int v) { this->XcodeVersion = v;} ///! Get the name for the generator. virtual const char* GetName() const { return cmGlobalXCodeGenerator::GetActualName();} @@ -193,7 +192,8 @@ protected: virtual const char* GetInstallTargetName() { return "install"; } virtual const char* GetPackageTargetName() { return "package"; } - int XcodeVersion; + unsigned int XcodeVersion; + std::string VersionString; std::vector<cmXCodeObject*> XCodeObjects; cmXCodeObject* RootObject; private: |