diff options
author | Brad King <brad.king@kitware.com> | 2012-08-16 20:20:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-22 20:35:46 (GMT) |
commit | 89595d6bceb25ecfa221342f03d1c3dce70c8484 (patch) | |
tree | 45077939932707b7bd7a6a91d8031b6f0e30e72a /Source/cmDocumentVariables.cxx | |
parent | 965a69dcaa0b67c730f45487abeee97ef652d545 (diff) | |
download | CMake-89595d6bceb25ecfa221342f03d1c3dce70c8484.zip CMake-89595d6bceb25ecfa221342f03d1c3dce70c8484.tar.gz CMake-89595d6bceb25ecfa221342f03d1c3dce70c8484.tar.bz2 |
VS10: Define CMAKE_VS_PLATFORM_TOOLSET variable
When the VS 10 generator selects a non-default PlatformToolset to
specify for MSBuild, report the selected name in this variable.
Diffstat (limited to 'Source/cmDocumentVariables.cxx')
-rw-r--r-- | Source/cmDocumentVariables.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx index 05ef8fc..376b947 100644 --- a/Source/cmDocumentVariables.cxx +++ b/Source/cmDocumentVariables.cxx @@ -283,6 +283,16 @@ void cmDocumentVariables::DefineVariables(cmake* cm) "see CMAKE_BUILD_TOOL.",false, "Variables that Provide Information"); cm->DefineProperty + ("CMAKE_VS_PLATFORM_TOOLSET", cmProperty::VARIABLE, + "Visual Studio Platform Toolset name.", + "VS 10 and above use MSBuild under the hood and support multiple " + "compiler toolchains. " + "CMake may specify a toolset explicitly, such as \"v110\" for " + "VS 11 or \"Windows7.1SDK\" for 64-bit support in VS 10 Express. " + "CMake provides the name of the chosen toolset in this variable." + ,false, + "Variables that Provide Information"); + cm->DefineProperty ("CMAKE_MINOR_VERSION", cmProperty::VARIABLE, "The Minor version of cmake (i.e. the 4 in X.4.X).", "This specifies the minor version of the CMake" |