Commit 1eb3df90 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Don't build snapd backend if snapd is not there

BUG: 393088
parent c44ea2e3
......@@ -28,14 +28,14 @@ elseif(BUILD_FlatpakBackend)
message(WARNING "BUILD_FlatpakBackend enabled but Flatpak=${FLATPAK_FOUND} or AppStreamQt=${AppStreamQt_FOUND} not found")
endif()
option(BUILD_SnapBackend "Build Snap support." "ON")
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)
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)
option(BUILD_SnapBackend "Build Snap support." "ON")
if(BUILD_SnapBackend AND Snapd_FOUND)
add_subdirectory(SnapBackend)
endif()
Supports Markdown
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