Skip to content

Commit f20e226

Browse files
committed
build: specify kvm/libcap dependency more clearly
Fixes: #627 Fixes: #626
1 parent 3e65b8c commit f20e226

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

meson.build

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ if local_prefix == ''
3333
endif
3434

3535
os = host_machine.system()
36-
if os != 'linux'
37-
cap_dep = []
38-
kvm_dep = cc.find_library('kvm')
39-
else
36+
37+
cap_dep = []
38+
kvm_dep = []
39+
40+
if os == 'linux'
4041
cap_dep = dependency('libcap', version: '>=2.33')
41-
kvm_dep = []
42+
elif os.contains('bsd') or os == 'dragonfly'
43+
kvm_dep = cc.find_library('kvm')
4244
endif
4345

4446
pam_dep = []

0 commit comments

Comments
 (0)