Skip to content

Commit

Permalink
cmake: don't hard-code absolute path name /etc
Browse files Browse the repository at this point in the history
- this breaks packaging and installation into a prefix in general
- there's a GNUInstallDirs variable for /etc, too
  • Loading branch information
jktjkt committed Apr 8, 2024
1 parent 3553179 commit c555ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ endif()

# copy pam service to /etc/pam.d
if(EXISTS "/etc/pam.d")
install(FILES "${CMAKE_SOURCE_DIR}/pam/netopeer2.conf" DESTINATION "/etc/pam.d")
install(FILES "${CMAKE_SOURCE_DIR}/pam/netopeer2.conf" DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/pam.d")
endif()

if(SYSREPO_SETUP)
Expand Down

0 comments on commit c555ed5

Please sign in to comment.