Produce more helpful message on OS-X and Windows.
authorNikolaus Rath <Nikolaus@rath.org>
Thu, 3 Aug 2017 11:44:32 +0000 (13:44 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Thu, 3 Aug 2017 11:44:32 +0000 (13:44 +0200)
Fixes: #186.
meson.build

index 7b126314b19ad6eb28bf00e6568b51f94d2fd5ef..0e1eb0aedbe0872e39a429ceb9c5c6a45c35d4c7 100644 (file)
@@ -2,6 +2,16 @@ project('libfuse3', 'c', version: '3.1.0',
         meson_version: '>= 0.38',
         default_options: [ 'buildtype=plain' ])
 
+
+platform = host_machine.system()
+if platform == 'darwin'
+  error('libfuse does not support OS-X.\n' +
+        'Take a look at http://osxfuse.github.io/ instead')
+elif platform == 'cygwin' or platform == 'windows'
+  error('libfuse does not support Windows.\n' +
+        'Take a look at http://www.secfs.net/winfsp/ instead')       
+endif
+
 #
 # Feature detection
 #