]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: don't look for unix paths on win32
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 17 Apr 2023 11:53:56 +0000 (15:53 +0400)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Apr 2023 13:02:22 +0000 (15:02 +0200)
Or meson will complain with:
../meson.build:770:2: ERROR: Search directory /sbin is not an absolute path.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
meson.build

index 47ec7fcb74e71ae8618086a46e4283718b3a1730..f7f31a278d5f7b93527eed8986e3126d03bcd287 100644 (file)
@@ -742,11 +742,15 @@ conf.set('SIZEOF_LONG', cc.sizeof('long'))
 
 # Where we look for daemons and admin binaries during configure
 
-libvirt_sbin_path = [
-  '/sbin',
-  '/usr/sbin',
-  '/usr/local/sbin',
-]
+libvirt_sbin_path = []
+
+if host_machine.system() != 'windows'
+  libvirt_sbin_path += [
+    '/sbin',
+    '/usr/sbin',
+    '/usr/local/sbin',
+  ]
+endif
 
 
 # required programs check