Skip to content

Commit

Permalink
using GNU sysconfdir for pam configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
alba4k committed Mar 1, 2024
1 parent d134d39 commit ced73af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ include_directories(
"protocols/"
)

include(GNUInstallDirs)

# configure
set(CMAKE_CXX_STANDARD 23)
add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value
Expand Down Expand Up @@ -81,4 +83,5 @@ protocol("unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml" "linux-dmabuf-unst
# Installation
install(TARGETS hyprlock)

install(FILES "pam/hyprlock" DESTINATION "/etc/pam.d")
install(FILES "pam/hyprlock" DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d")

0 comments on commit ced73af

Please sign in to comment.