mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
meson: Only require libmount on Linux
It's not available on other platforms, so don't require the user to explicitly disable it there.
This commit is contained in:
parent
eb07a2c87d
commit
fb1f52e32f
@ -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')]
|
||||
|
Loading…
Reference in New Issue
Block a user