Skip to content

Commit 8fd4beb

Browse files
committed
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
1 parent 8cd1f87 commit 8fd4beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ file(WRITE "${CMAKE_BINARY_DIR}/direwolf.conf" "${file_content}")
2626

2727
# install udev rules for CM108
2828
if(LINUX)
29-
install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION etc/udev/rules.d/)
29+
install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/)
3030
endif()
3131

3232
install(FILES "${CMAKE_BINARY_DIR}/direwolf.conf" DESTINATION share/doc/${CMAKE_PROJECT_NAME}/examples)

0 commit comments

Comments
 (0)