summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authornightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com>2020-05-27 12:35:05 +0200
committernightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com>2020-05-27 12:35:05 +0200
commit3e49becc2f20f2b62cff266f12f4f99d6101446f (patch)
tree57c5d833758f7cd413cf8c939b7c62ea6a95e35f /CMakeLists.txt
parentfd856ddc40f9e9f55f70b76f4429d16081ee5b02 (diff)
Corrected udev & modprobe install directories
(Fixes #966)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b17fdc..b660e0f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -255,12 +255,12 @@ install(TARGETS st-util DESTINATION ${CMAKE_INSTALL_BINDIR})
###
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
- ## Install modprobe.d conf files / rules to /usr/local/etc/stlink (default)
- set(STLINK_MODPROBED_DIR "${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME}/modprobe.d" CACHE PATH "modprobe.d directory")
+ ## Install modprobe.d conf files to /etc/modprobe.d/ (explicitly hardcoded)
+ set(STLINK_MODPROBED_DIR "/etc/modprobe.d" CACHE PATH "modprobe.d directory")
install(FILES ${CMAKE_SOURCE_DIR}/config/modprobe.d/stlink_v1.conf DESTINATION ${STLINK_MODPROBED_DIR})
- ## Install udev rules files / rules to /usr/local/etc/stlink (default)
- set(STLINK_UDEV_RULES_DIR "${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME}/udev/rules.d" CACHE PATH "udev rules directory")
+ ## Install udev rules files to /etc/udev/rules.d/ (explicitly hardcoded)
+ set(STLINK_UDEV_RULES_DIR "/etc/udev/rules.d" CACHE PATH "udev rules directory")
file(GLOB RULES_FILES ${CMAKE_SOURCE_DIR}/config/udev/rules.d/*.rules)
install(FILES ${RULES_FILES} DESTINATION ${STLINK_UDEV_RULES_DIR})
endif ()