diff options
| author | Aleix Pol <aleixpol@kde.org> | 2017-06-29 15:40:50 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2017-06-29 15:40:50 (GMT) |
| commit | 1ff711c54630b665988a728d6318f06004d598ed (patch) | |
| tree | 58b2899502e4bd6da7da0cc0b75541bf66ea2ffb | |
| parent | 94c6317838f08a7511fa25508c0c74e24ed4e1c5 (diff) | |
Don't look up Snapd if it's not going to be used
| -rw-r--r-- | CMakeLists.txt | 7 | ||||
| -rw-r--r-- | libdiscover/backends/CMakeLists.txt | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 359f030..1fbba2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/libdiscover/backends/CMakeLists.txt b/libdiscover/backends/CMakeLists.txt index a6f8f1a..a6454be 100644 --- a/libdiscover/backends/CMakeLists.txt +++ b/libdiscover/backends/CMakeLists.txt @@ -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() |
