mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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.
This commit is contained in:
committed by
Brad King
parent
709cebde66
commit
401a00d9f9
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user