diff --git a/meson.build b/meson.build index ad7c4c7..a0f02a2 100644 --- a/meson.build +++ b/meson.build @@ -127,10 +127,12 @@ executable('swaylock', install: true ) -install_data( - 'pam/swaylock', - install_dir: get_option('sysconfdir') / 'pam.d' -) +if libpam.found() + install_data( + 'pam/swaylock', + install_dir: get_option('sysconfdir') / 'pam.d' + ) +endif if scdoc.found() mandir = get_option('mandir')