summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-05-04 01:29:08 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-05-05 21:08:06 (GMT)
commite0acb6ca5fbe5429b6a1cc7f7188dd3e388ffd7c (patch)
tree163d9503f7e85b18d4c743c8bfbdeaa5100a37ab /Source/cmGlobalVisualStudio71Generator.cxx
parentea62d6973b657041021f00c67726cf476acd2424 (diff)
downloadCMake-e0acb6ca5fbe5429b6a1cc7f7188dd3e388ffd7c.zip
CMake-e0acb6ca5fbe5429b6a1cc7f7188dd3e388ffd7c.tar.gz
CMake-e0acb6ca5fbe5429b6a1cc7f7188dd3e388ffd7c.tar.bz2
Fix Windows-cl.cmake so that at most one MSVC** variable is defined.
The expectation of users of the MSVC60, MSVC70, MSVC71, MSVC80, MSVC90 and the new MSVC10 variables is that at most one of them will be set for any given build tree. This change enforces that expectation for build trees using Makefile generators. It also fixes the one mismatch in that expectation to be found in the Visual Studio generator world: previously, the VS 7.1 generator would set *both* MSVC70 and MSVC71; now, it only sets MSVC71. With these changes, user expectations are now met, and the recently introduced CheckCompilerRelatedVariables test should pass everywhere.
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index d608aac..1191575 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -37,6 +37,7 @@ cmLocalGenerator *cmGlobalVisualStudio71Generator::CreateLocalGenerator()
void cmGlobalVisualStudio71Generator::AddPlatformDefinitions(cmMakefile* mf)
{
this->cmGlobalVisualStudio7Generator::AddPlatformDefinitions(mf);
+ mf->RemoveDefinition("MSVC70");
mf->AddDefinition("MSVC71", "1");
}