From fc58271a3f10c38f8cdfd9996705ede3eda36c87 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 4 Apr 2025 17:45:52 +0300 Subject: [PATCH] Enable udev rules installation on Linux only --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 903931e..6b8a8e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,11 +86,13 @@ endif() ######################################################################## # Install udev rules ######################################################################## -install( - FILES fobos-sdr.rules - DESTINATION "/etc/udev/rules.d" - COMPONENT "udev" +if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + install( + FILES fobos-sdr.rules + DESTINATION "/etc/udev/rules.d" + COMPONENT "udev" ) +endif() ######################################################################## ########################################################################