aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2017-05-12 10:17:54 -0400
committerAndrew Dunstan <andrew@dunslane.net>2017-05-12 10:23:39 -0400
commit8ec82ee6ae7a302ab696f696a5eb2f45ae3c5910 (patch)
treee897728e201720c3a74c3acf3c20709ba77eab61
parent6f2fe24685465006c8434b2407ccfe8537c71e76 (diff)
downloadpostgresql-8ec82ee6ae7a302ab696f696a5eb2f45ae3c5910.tar.gz
postgresql-8ec82ee6ae7a302ab696f696a5eb2f45ae3c5910.zip
Add libxml2 include path for MSVC builds
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.
-rw-r--r--src/tools/msvc/Solution.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 7cae0beb15a..2cc69ce1c82 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -521,6 +521,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})