diff options
author | Martin Hauke <mardnh@gmx.de> | 2018-04-24 21:24:47 +0200 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2018-04-24 21:40:36 +0200 |
commit | a968dd560385372b444db0770cc317831467e016 (patch) | |
tree | 47bf1d91ef9af43f60f30f6923d6e4e57cd11ce1 | |
parent | 0325fa9496e622200506ead78db8df2209fb39d2 (diff) | |
download | osmo-fl2k-a968dd560385372b444db0770cc317831467e016.tar.gz osmo-fl2k-a968dd560385372b444db0770cc317831467e016.tar.bz2 osmo-fl2k-a968dd560385372b444db0770cc317831467e016.zip |
CMake: Make UDEV_RULES_PATH configurable
Signed-off-by: Steve Markgraf <steve@steve-m.de>
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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) |