summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.cxx
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-20 10:33:34 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-26 14:33:24 (GMT)
commitd41d4d3d61275414958831bc3d5a45f74b1f2339 (patch)
tree4d2f8afd47add243479e370f1f1bb6ffe6437cea /Source/cmGlobalVisualStudio8Generator.cxx
parent14861f88d2e33edc53ab00f92dfaaf860f9d4084 (diff)
downloadCMake-d41d4d3d61275414958831bc3d5a45f74b1f2339.zip
CMake-d41d4d3d61275414958831bc3d5a45f74b1f2339.tar.gz
CMake-d41d4d3d61275414958831bc3d5a45f74b1f2339.tar.bz2
VS: Add CMAKE_VS_PLATFORM_NAME definition to cmMakefile
When adding more platforms to the Visual Studio generators a simple regular expressing can not handle all cases anymore. This new define holds the name of the Visual Studio target platform.
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index 855727b..8ab97b5 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -99,6 +99,13 @@ cmLocalGenerator *cmGlobalVisualStudio8Generator::CreateLocalGenerator()
}
//----------------------------------------------------------------------------
+void cmGlobalVisualStudio8Generator::AddPlatformDefinitions(cmMakefile* mf)
+{
+ cmGlobalVisualStudio71Generator::AddPlatformDefinitions(mf);
+ mf->AddDefinition("CMAKE_VS_PLATFORM_NAME", this->GetPlatformName());
+}
+
+//----------------------------------------------------------------------------
// ouput standard header for dsw file
void cmGlobalVisualStudio8Generator::WriteSLNHeader(std::ostream& fout)
{