mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 11:29:15 -04:00
24 lines
830 B
Text
24 lines
830 B
Text
--- CMakeLists.txt.orig 2021-11-13 11:33:58 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -118,21 +118,6 @@ target_link_libraries(headsetcontrol m ${HIDAPI_LIBRAR
|
|
|
|
install(TARGETS headsetcontrol DESTINATION bin)
|
|
|
|
-# install udev files on linux
|
|
-if(UNIX AND NOT APPLE)
|
|
- set(rules_file 70-headsets.rules)
|
|
- set(udev_rules_dir lib/udev/rules.d/
|
|
- CACHE PATH "Path to the directory where udev rules should be installed")
|
|
- add_custom_command(
|
|
- OUTPUT ${rules_file}
|
|
- COMMAND headsetcontrol -u > ${rules_file}
|
|
- DEPENDS headsetcontrol)
|
|
- add_custom_target(udevrules ALL DEPENDS ${rules_file})
|
|
- install(
|
|
- FILES ${CMAKE_CURRENT_BINARY_DIR}/${rules_file}
|
|
- DESTINATION ${udev_rules_dir})
|
|
-endif()
|
|
-
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# Testing
|