[glib/wip/meson: 29/35] meson: Only require libmount on Linux



commit b7736568c012064f1d0cf3f0e51dbd3e5c91c31b
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 2944a96..778c21a 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]