diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2011-01-04 16:06:51 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2011-01-04 16:06:51 -0500 |
commit | d61d3c39ddcdc890fd9a807f5cb10ce76a340642 (patch) | |
tree | 0194ba2a2fc98c4a069a042a42e9733a67a40326 /src/tools/msvc/Project.pm | |
parent | 3de618cee89901306649835f8fa7c5ab07b8ee9f (diff) |
Allow older branches to be built with Visual Studio 2008. This is a backport of commit df0cdd53 to the 8.2, 8.3 and 8.4 branches.
Diffstat (limited to 'src/tools/msvc/Project.pm')
-rw-r--r-- | src/tools/msvc/Project.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index 27ac3caf040..f2e3f5fdb92 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -32,7 +32,8 @@ sub new defines => ';', solution => $solution, disablewarnings => '4018;4244;4273;4102;4090', - disablelinkerwarnings => '' + disablelinkerwarnings => '', + vcver => $solution->{vcver} }; bless $self; @@ -456,7 +457,7 @@ sub WriteHeader print $f <<EOF; <?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="$self->{name}" ProjectGUID="$self->{guid}"> +<VisualStudioProject ProjectType="Visual C++" Version="$self->{vcver}" Name="$self->{name}" ProjectGUID="$self->{guid}"> <Platforms><Platform Name="Win32"/></Platforms> <Configurations> EOF |