Install pam config only if pam is enabled

This commit is contained in:
Sertonix 2024-01-16 11:10:46 +00:00 committed by Simon Ser
parent 91bb968110
commit bb32fd1d50

View File

@ -127,10 +127,12 @@ executable('swaylock',
install: true
)
install_data(
if libpam.found()
install_data(
'pam/swaylock',
install_dir: get_option('sysconfdir') / 'pam.d'
)
)
endif
if scdoc.found()
mandir = get_option('mandir')