[libsoup/build.fixes] meson.build: Look for libxml2.lib correcly on Visual Studio builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/build.fixes] meson.build: Look for libxml2.lib correcly on Visual Studio builds
- Date: Thu, 7 Mar 2019 09:41:44 +0000 (UTC)
commit 497f38a767b91d7f3ce2a8e31fb4c37043522190
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Mar 7 17:38:59 2019 +0800
meson.build: Look for libxml2.lib correcly on Visual Studio builds
On Visual Studio builds, it is not enough to look for 'xml2' for the
library libxml2.lib, instead, we need to look for 'libxml2'.
libxml2.lib is the library name that is produced by libxml2's NMake
Makefiles.
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 6d738b94..177b5a4f 100644
--- a/meson.build
+++ b/meson.build
@@ -78,7 +78,8 @@ if not libxml_dep.found()
# Note: The XML include dir needs to be within the INCLUDE envvar,
# such as <INCLUDEDIR>\libxml2
cc.has_header('libxml/tree.h')
- libxml_dep = cc.find_library('xml2')
+ libxml2_libname = cc.get_id() == 'msvc' ? 'libxml2' : 'xml2'
+ libxml_dep = cc.find_library(libxml2_libname)
endif
cdata = configuration_data()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]