summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2014-07-31 17:24:08 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-31 18:09:05 (GMT)
commit401a00d9f98aff9c2f15315945cd4c392ff36d9f (patch)
treea893a751aeb7a710513eb502c55e1a8c3f48c142
parent709cebde66a4251e1a1ed7a90c072f06be691bee (diff)
downloadCMake-401a00d9f98aff9c2f15315945cd4c392ff36d9f.zip
CMake-401a00d9f98aff9c2f15315945cd4c392ff36d9f.tar.gz
CMake-401a00d9f98aff9c2f15315945cd4c392ff36d9f.tar.bz2
VS: Set WindowsPhone and WindowsStore min VS version required
Generate the MinimumVisualStudioVersion element in the .vcxproj file based on the version of WindowsPhone or WindowsStore to be targeted.
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index e9421e3..291827a 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2120,5 +2120,17 @@ void cmVisualStudio10TargetGenerator::WriteApplicationTypeSettings()
this->WriteString("<ApplicationTypeRevision>", 2);
(*this->BuildFileStream) << cmVS10EscapeXML(v)
<< "</ApplicationTypeRevision>\n";
+ if(v == "8.1")
+ {
+ // Visual Studio 12.0 is necessary for building 8.1 apps
+ this->WriteString("<MinimumVisualStudioVersion>12.0"
+ "</MinimumVisualStudioVersion>\n", 2);
+ }
+ else if (v == "8.0")
+ {
+ // Visual Studio 11.0 is necessary for building 8.0 apps
+ this->WriteString("<MinimumVisualStudioVersion>11.0"
+ "</MinimumVisualStudioVersion>\n", 2);
+ }
}
}