mirror of https://github.com/wb2osz/direwolf.git
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:
parent
8cd1f87ef6
commit
8fd4bebf45
|
@ -26,7 +26,7 @@ file(WRITE "${CMAKE_BINARY_DIR}/direwolf.conf" "${file_content}")
|
||||||
|
|
||||||
# install udev rules for CM108
|
# install udev rules for CM108
|
||||||
if(LINUX)
|
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()
|
endif()
|
||||||
|
|
||||||
install(FILES "${CMAKE_BINARY_DIR}/direwolf.conf" DESTINATION share/doc/${CMAKE_PROJECT_NAME}/examples)
|
install(FILES "${CMAKE_BINARY_DIR}/direwolf.conf" DESTINATION share/doc/${CMAKE_PROJECT_NAME}/examples)
|
||||||
|
|
Loading…
Reference in New Issue