Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1ff711c5 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't look up Snapd if it's not going to be used

parent 94c63178
......@@ -30,8 +30,6 @@ find_package(KF5NewStuff 5.23)
pkg_check_modules(FLATPAK flatpak>=0.6.12)
pkg_check_modules(APPSTREAM appstream)
find_package(Snapd)
configure_file(DiscoverVersion.h.in DiscoverVersion.h)
add_subdirectory(libdiscover)
......@@ -71,10 +69,5 @@ set_package_properties(AppStreamQt PROPERTIES
URL "http://www.freedesktop.org"
PURPOSE "Required to build the PackageKit backend"
TYPE OPTIONAL)
set_package_properties(Snapd PROPERTIES
DESCRIPTION "Library that exposes Snapd"
URL "http://www.snapcraft.io"
PURPOSE "Required to build the Snap backend"
TYPE OPTIONAL)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -28,5 +28,12 @@ endif()
option(BUILD_SnapBackend "Build Snap support. Still a proof of concept" "OFF")
if(BUILD_SnapBackend)
find_package(Snapd)
set_package_properties(Snapd PROPERTIES
DESCRIPTION "Library that exposes Snapd"
URL "http://www.snapcraft.io"
PURPOSE "Required to build the Snap backend"
TYPE OPTIONAL)
add_subdirectory(SnapBackend)
endif()
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