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
This commit is contained in:
Davide Gerhard 2019-11-09 09:21:29 +01:00
parent 8cd1f87ef6
commit 8fd4bebf45
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97
1 changed files with 1 additions and 1 deletions

View File

@ -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)