From a86f2e5b26e5f73ea3265d3438ed6ff8ee3da98c Mon Sep 17 00:00:00 2001 From: Alexander88207 <104524136+Alexander88207@users.noreply.github.com> Date: Sun, 24 Jul 2022 12:10:28 +0200 Subject: [PATCH] Also dont install udev files on FreeBSD FreeBSD dont uses udev --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 266fcf34..c7ab9ce0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,7 +119,7 @@ target_link_libraries(headsetcontrol m ${HIDAPI_LIBRARIES}) install(TARGETS headsetcontrol DESTINATION bin) # install udev files on linux -if(UNIX AND NOT APPLE) +if(UNIX AND NOT APPLE AND NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES "FreeBSD") 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")