mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
Add cmake argument to specify udev rule path
This commit is contained in:
@@ -73,6 +73,7 @@ include(CMakeDependentOption)
|
||||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE STRING "Where to put binaries after compilation.")
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE STRING "Where to put libraries after compilation.")
|
||||
set(UDEV_RULE_DIRECTORY "/lib/udev/rules.d" CACHE STRING "Where to install the udev rule.")
|
||||
|
||||
if (MACOS)
|
||||
option(USE_BREW_QT5 "Use Homebrew package for Qt5." ON)
|
||||
|
||||
@@ -475,7 +475,7 @@ if (LINUX)
|
||||
endif ()
|
||||
install(
|
||||
FILES "${CMAKE_SOURCE_DIR}/linux/udev/99-ckb-next-daemon.rules"
|
||||
DESTINATION "/lib/udev/rules.d"
|
||||
DESTINATION "${UDEV_RULE_DIRECTORY}"
|
||||
PERMISSIONS
|
||||
OWNER_READ OWNER_WRITE
|
||||
GROUP_READ
|
||||
|
||||
Reference in New Issue
Block a user