[glib/wip/meson: 42/53] meson: Only require libmount on Linux
- From: Tim-Philipp Müller <tpm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/meson: 42/53] meson: Only require libmount on Linux
- Date: Sat, 13 May 2017 14:10:58 +0000 (UTC)
commit d11f58b0b350a767033f6963757fe78c618075e5
Author: Nirbheek Chauhan <nirbheek centricular com>
Date: Tue Mar 21 16:49:55 2017 +0530
meson: Only require libmount on Linux
It's not available on other platforms, so don't require the user to
explicitly disable it there.
meson.build | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index f559b4d..c9f70f7 100644
--- a/meson.build
+++ b/meson.build
@@ -1283,7 +1283,7 @@ libintl = cc.find_library('intl', required : false)
# pkg-config file below
libmount_dep = []
libmount_opt = get_option('enable-libmount')
-if libmount_opt != 'no'
+if host_system == 'linux' and libmount_opt != 'no'
libmount_dep = [dependency('mount', version : '>=2.28', required : false)]
if not libmount_dep[0].found()
libmount_dep = [cc.find_library('mount')]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]