Commit 124760e1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Allow building without UDev on Linux

Flatpak has been patching this for a while, there doesn't seem to be a way to
use it there, so we better offer the option upstream.

Test Plan: Been building and using solid on flatpak runtimes for a while.

Reviewers: #frameworks, davidedmundson

Reviewed By: davidedmundson

Subscribers: asturmlechner, davidedmundson, kde-frameworks-devel

Tags: #frameworks

Differential Revision:
parent 18517737
...@@ -51,7 +51,8 @@ set_package_properties(BISON PROPERTIES ...@@ -51,7 +51,8 @@ set_package_properties(BISON PROPERTIES
PURPOSE "Required for the Predicate parser" PURPOSE "Required for the Predicate parser"
) )
if (CMAKE_SYSTEM_NAME MATCHES Linux) option(UDEV_DISABLED "Allows disabling UDev usage on Linux builds" OFF)
find_package( UDev ) find_package( UDev )
if (UDev_FOUND) if (UDev_FOUND)
set(UDEV_FOUND TRUE) # for config-solid.h set(UDEV_FOUND TRUE) # for config-solid.h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment