1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Enable building with Visual Studion 2013.

Backpatch to 9.3.

Brar Piening.
This commit is contained in:
Andrew Dunstan
2014-01-26 09:45:43 -05:00
parent 8cb90b21af
commit 56c08df55b
9 changed files with 141 additions and 26 deletions

View File

@ -45,6 +45,10 @@ sub CreateSolution
{
return new VS2012Solution(@_);
}
elsif ($visualStudioVersion eq '12.00')
{
return new VS2013Solution(@_);
}
else
{
croak "The requested Visual Studio version is not supported.";
@ -76,6 +80,10 @@ sub CreateProject
{
return new VC2012Project(@_);
}
elsif ($visualStudioVersion eq '12.00')
{
return new VC2013Project(@_);
}
else
{
croak "The requested Visual Studio version is not supported.";
@ -115,11 +123,11 @@ sub DetermineVisualStudioVersion
sub _GetVisualStudioVersion
{
my ($major, $minor) = @_;
if ($major > 11)
if ($major > 12)
{
carp
"The determined version of Visual Studio is newer than the latest supported version. Returning the latest supported version instead.";
return '11.00';
return '12.00';
}
elsif ($major < 6)
{