]> granicus.if.org Git - postgresql/commitdiff
Add libxml2 include path for MSVC builds
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 12 May 2017 14:17:54 +0000 (10:17 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 12 May 2017 14:24:00 +0000 (10:24 -0400)
On Unix this path is detected via the use of xml2-config, but that's not
available on Windows. This means that users building with libxml2 will
no longer need to move things around from the standard libxml2
installation for MSVC builds.

Backpatch to all live branches.

src/tools/msvc/Solution.pm

index a91846f52f3c1ba38ddb4d7fb100b98a068a0081..0af4a52552976fd30d9f80982211255b1d28f64b 100644 (file)
@@ -525,6 +525,7 @@ sub AddProject
        if ($self->{options}->{xml})
        {
                $proj->AddIncludeDir($self->{options}->{xml} . '\include');
+               $proj->AddIncludeDir($self->{options}->{xml} . '\include\libxml2');
                $proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
        }
        if ($self->{options}->{xslt})