From 8fd4bebf452cc55aa0ef7a1bcc9e262e0b0fbc25 Mon Sep 17 00:00:00 2001 From: Davide Gerhard Date: Sat, 9 Nov 2019 09:21:29 +0100 Subject: [PATCH] install udev rules on /etc and not ${CMAKE_INSTALL_PREFIX}/etc This should works fine also with cpack and packaging seen that they are using DESTDIR. CPACK: - from 2.8.3 CPACK_SET_DESTDIR is default to ON - if you have trouble read CPACK_PACKAGING_INSTALL_PREFIX --- conf/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt index df0e27b..2b34109 100644 --- a/conf/CMakeLists.txt +++ b/conf/CMakeLists.txt @@ -26,7 +26,7 @@ file(WRITE "${CMAKE_BINARY_DIR}/direwolf.conf" "${file_content}") # install udev rules for CM108 if(LINUX) - install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION etc/udev/rules.d/) + install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/) endif() install(FILES "${CMAKE_BINARY_DIR}/direwolf.conf" DESTINATION share/doc/${CMAKE_PROJECT_NAME}/examples)