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() ######################################################################## ########################################################################