Make libcap an optional dependency

FreeBSD does not have libcap, so without "required: false" Sway fails
to build.
master
sghctoma 6 years ago
parent cc16948c85
commit 462e15d9a5

@ -38,7 +38,7 @@ pango = dependency('pango')
pangocairo = dependency('pangocairo') pangocairo = dependency('pangocairo')
gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: false) gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: false)
pixman = dependency('pixman-1') pixman = dependency('pixman-1')
libcap = dependency('libcap') libcap = dependency('libcap', required: false)
libinput = dependency('libinput', version: '>=1.6.0') libinput = dependency('libinput', version: '>=1.6.0')
libpam = cc.find_library('pam') libpam = cc.find_library('pam')
systemd = dependency('libsystemd', required: false) systemd = dependency('libsystemd', required: false)

Loading…
Cancel
Save