From bb32fd1d5063e6f53a5bde644b7d0ddd16fe8c49 Mon Sep 17 00:00:00 2001 From: Sertonix <83883937+Sertonix@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:10:46 +0000 Subject: [PATCH] Install pam config only if pam is enabled --- meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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')