[libsoup/build.fixes] meson.build: Look for libxml2.lib correctly 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 correctly on Visual Studio builds
- Date: Thu, 7 Mar 2019 09:43:29 +0000 (UTC)
commit 3dfd4ce2bf00ce834f7b619a5b57dea8ca983e3f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Mar 7 17:38:59 2019 +0800
meson.build: Look for libxml2.lib correctly 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]