summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-03-21 16:49:55 +0530
committerMatthias Clasen <mclasen@redhat.com>2017-07-13 19:03:39 -0400
commitfb1f52e32fa21e0d7a3b5ac5e37afbd155ed8cee (patch)
tree14d0269c5dbe470a5cde2d14aeb4eaab32ce932d
parenteb07a2c87dd22039f2ce90aef7872aaef2e5d4af (diff)
downloadglib-fb1f52e32fa21e0d7a3b5ac5e37afbd155ed8cee.tar.gz
meson: Only require libmount on Linux
It's not available on other platforms, so don't require the user to explicitly disable it there.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index f559b4db0..c9f70f7a8 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')]