From a968dd560385372b444db0770cc317831467e016 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Tue, 24 Apr 2018 21:24:47 +0200 Subject: CMake: Make UDEV_RULES_PATH configurable Signed-off-by: Steve Markgraf --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a3b5e2..b6bcb5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,9 +104,14 @@ add_custom_target(uninstall ######################################################################## option(INSTALL_UDEV_RULES "Install udev rules for libosmo-fl2k" OFF) if (INSTALL_UDEV_RULES) + set(UDEV_RULES_PATH + "/etc/udev/rules.d" + CACHE STRING + "Target directory for udev rule installation. Ensure you have permissions to write to this directory." + ) install ( FILES osmo-fl2k.rules - DESTINATION "/etc/udev/rules.d" + DESTINATION ${UDEV_RULES_PATH} COMPONENT "udev" ) else (INSTALL_UDEV_RULES) -- cgit v1.2.3