File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,9 @@ else()
187
187
set (INSTALL_SCRIPTS_DIR "${INSTALL_DOC_DIR} /scripts" )
188
188
set (INSTALL_MAN_DIR "share/man/man1" )
189
189
set (INSTALL_DATA_DIR "share/${PROJECT_NAME} " )
190
+ if (NOT DEFINED UDEV_RULES_DIR OR "${UDEV_RULES_DIR} " STREQUAL "" )
191
+ set (UDEV_RULES_DIR "/etc/udev/rules.d" )
192
+ endif ()
190
193
endif (WIN32 OR CYGWIN )
191
194
192
195
# requirements
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ file(WRITE "${CMAKE_BINARY_DIR}/direwolf.conf" "${file_content}")
26
26
27
27
# install udev rules for CM108
28
28
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 ${UDEV_RULES_DIR} )
30
30
endif ()
31
31
32
32
install (FILES "${CMAKE_BINARY_DIR} /direwolf.conf" DESTINATION ${INSTALL_CONF_DIR} )
You can’t perform that action at this time.
0 commit comments