From c555ed5f58401352d54ba1cf965acdb042d67c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= Date: Mon, 8 Apr 2024 12:29:04 +0200 Subject: [PATCH] cmake: don't hard-code absolute path name /etc - this breaks packaging and installation into a prefix in general - there's a GNUInstallDirs variable for /etc, too --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec67fc18..6cb6cd52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)