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/cmDocumentVariables.cxx | |
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/cmDocumentVariables.cxx')
-rw-r--r-- | Source/cmDocumentVariables.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx index d6d6267..ea07da4 100644 --- a/Source/cmDocumentVariables.cxx +++ b/Source/cmDocumentVariables.cxx @@ -785,6 +785,13 @@ void cmDocumentVariables::DefineVariables(cmake* cm) "Variables That Describe the System"); cm->DefineProperty + ("XCODE_VERSION", cmProperty::VARIABLE, + "Version of Xcode (Xcode generator only).", + "Under the Xcode generator, this is the version of Xcode as specified in " + "\"Xcode.app/Contents/version.plist\" (such as \"3.1.2\").",false, + "Variables That Describe the System"); + + cm->DefineProperty ("CMAKE_HOST_APPLE", cmProperty::VARIABLE, "True for Apple OSXoperating systems.", "Set to true when the host system is Apple OSX.", |