1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Handle libraries in directories with spaces in them.

Gevik Babakhani
This commit is contained in:
Magnus Hagander
2008-02-05 14:17:23 +00:00
parent 701cd5af45
commit 03e4dc9ef2
2 changed files with 12 additions and 4 deletions

View File

@ -3,7 +3,7 @@ package Project;
#
# Package that encapsulates a Visual C++ project file generation
#
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.15 2007/12/11 14:34:43 mha Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.16 2008/02/05 14:17:23 mha Exp $
#
use Carp;
use strict;
@ -123,6 +123,11 @@ sub AddReference
sub AddLibrary
{
my ($self, $lib, $dbgsuffix) = @_;
if ($lib =~ m/\s/)
{
$lib = '"' . $lib . """;
}
push @{$self->{libraries}}, $lib;
if ($dbgsuffix)