[glib/meson-for-merge] meson: Only require libmount on Linux



commit fb1f52e32fa21e0d7a3b5ac5e37afbd155ed8cee
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]