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

Allow building without UDev on Linux

Summary:
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: https://phabricator.kde.org/D20230
parent 18517737
......@@ -51,7 +51,8 @@ set_package_properties(BISON PROPERTIES
PURPOSE "Required for the Predicate parser"
)
if (CMAKE_SYSTEM_NAME MATCHES Linux)
option(UDEV_DISABLED "Allows disabling UDev usage on Linux builds" OFF)
if (CMAKE_SYSTEM_NAME MATCHES Linux AND NOT UDEV_DISABLED)
find_package( UDev )
if (UDev_FOUND)
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