summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-16 20:20:34 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-22 20:35:46 (GMT)
commit89595d6bceb25ecfa221342f03d1c3dce70c8484 (patch)
tree45077939932707b7bd7a6a91d8031b6f0e30e72a /Source/cmGlobalVisualStudio10Generator.cxx
parent965a69dcaa0b67c730f45487abeee97ef652d545 (diff)
downloadCMake-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/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index b44b780..39c9ae1 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -28,6 +28,17 @@ cmGlobalVisualStudio10Generator::cmGlobalVisualStudio10Generator()
}
//----------------------------------------------------------------------------
+void cmGlobalVisualStudio10Generator::AddPlatformDefinitions(cmMakefile* mf)
+{
+ cmGlobalVisualStudio8Generator::AddPlatformDefinitions(mf);
+ if(!this->PlatformToolset.empty())
+ {
+ mf->AddDefinition("CMAKE_VS_PLATFORM_TOOLSET",
+ this->PlatformToolset.c_str());
+ }
+}
+
+//----------------------------------------------------------------------------
void cmGlobalVisualStudio10Generator::WriteSLNHeader(std::ostream& fout)
{
fout << "Microsoft Visual Studio Solution File, Format Version 11.00\n";