Skip to content

Commit

Permalink
Merge pull request greatscottgadgets#141 from cottsay/udev-install-dir
Browse files Browse the repository at this point in the history
add CMake value to change udev rule destination
  • Loading branch information
mossmann committed Nov 5, 2014
2 parents f4d7102 + ea47fd4 commit ecab042
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion host/libhackrf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,13 @@ endif()
########################################################################
option(INSTALL_UDEV_RULES "Install udev rules for HackRF" OFF)
if (INSTALL_UDEV_RULES)
if (NOT UDEV_INSTALL_DIR)
set (UDEV_INSTALL_DIR "/etc/udev/rules.d")
endif (NOT UDEV_INSTALL_DIR)

install (
FILES 53-hackrf.rules
DESTINATION "/etc/udev/rules.d"
DESTINATION ${UDEV_INSTALL_DIR}
COMPONENT "udev"
)
else (INSTALL_UDEV_RULES)
Expand Down

0 comments on commit ecab042

Please sign in to comment.