summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio11Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-11-14 14:42:51 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-14 14:50:47 (GMT)
commitc92ffece804cd177c3531e58a39c3f0a6487d67d (patch)
tree9e98a0c734edcf6252313bc1b2c5b078644a434d /Source/cmGlobalVisualStudio11Generator.cxx
parent1be4b6f4638334970a3d3f19891b5997ddcf5717 (diff)
downloadCMake-c92ffece804cd177c3531e58a39c3f0a6487d67d.zip
CMake-c92ffece804cd177c3531e58a39c3f0a6487d67d.tar.gz
CMake-c92ffece804cd177c3531e58a39c3f0a6487d67d.tar.bz2
Enumerate VS11 version explicitly in local generators
Since the parent commit the local generator Version ivar may be compared for ordering. Convert comparisons: "==VS10" becomes ">=VS10" "!=VS10" becomes "< VS10" to support an explicit enumeration value for VS11 with no change in behavior.
Diffstat (limited to 'Source/cmGlobalVisualStudio11Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio11Generator.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio11Generator.cxx b/Source/cmGlobalVisualStudio11Generator.cxx
index 97308bb..be7fd55 100644
--- a/Source/cmGlobalVisualStudio11Generator.cxx
+++ b/Source/cmGlobalVisualStudio11Generator.cxx
@@ -10,6 +10,7 @@
See the License for more information.
============================================================================*/
#include "cmGlobalVisualStudio11Generator.h"
+#include "cmLocalVisualStudio10Generator.h"
#include "cmMakefile.h"
//----------------------------------------------------------------------------
@@ -36,6 +37,16 @@ void cmGlobalVisualStudio11Generator::WriteSLNHeader(std::ostream& fout)
}
//----------------------------------------------------------------------------
+cmLocalGenerator *cmGlobalVisualStudio11Generator::CreateLocalGenerator()
+{
+ cmLocalVisualStudio10Generator* lg =
+ new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS11);
+ lg->SetPlatformName(this->GetPlatformName());
+ lg->SetGlobalGenerator(this);
+ return lg;
+}
+
+//----------------------------------------------------------------------------
void cmGlobalVisualStudio11Generator
::GetDocumentation(cmDocumentationEntry& entry) const
{