Skip to content

Commit 3a84978

Browse files
committed
Make iconv work like other optional libraries for MSVC.
1 parent 8b42077 commit 3a84978

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/tools/msvc/Solution.pm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Solution;
33
#
44
# Package that encapsulates a Visual C++ solution file generation
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.55 2010/03/02 22:02:31 adunstan Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.56 2010/03/03 03:29:37 adunstan Exp $
77
#
88
use Carp;
99
use strict;
@@ -413,10 +413,14 @@ sub AddProject
413413
$proj->AddLibrary($self->{options}->{krb5} . '\lib\i386\comerr32.lib');
414414
$proj->AddLibrary($self->{options}->{krb5} . '\lib\i386\gssapi32.lib');
415415
}
416+
if ($self->{options}->{iconv})
417+
{
418+
$proj->AddIncludeDir($self->{options}->{iconv} . '\include');
419+
$proj->AddLibrary($self->{options}->{iconv} . '\lib\iconv.lib');
420+
}
416421
if ($self->{options}->{xml})
417422
{
418423
$proj->AddIncludeDir($self->{options}->{xml} . '\include');
419-
$proj->AddIncludeDir($self->{options}->{iconv} . '\include');
420424
$proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
421425
}
422426
if ($self->{options}->{xslt})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy