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:
@ -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)
|
||||
|
Reference in New Issue
Block a user