cmake: Make KF5Wayland required again

wayland platform plugin uses KF::Wayland.
This commit is contained in:
Vlad Zahorodnii 2021-10-10 18:31:36 +03:00
parent 260b224d3b
commit d6f02abad0

View file

@ -100,6 +100,12 @@ set_package_properties(Threads PROPERTIES
TYPE REQUIRED
)
find_package(KF5Wayland ${KF5_MIN_VERSION} CONFIG)
set_package_properties(KF5Wayland PROPERTIES
PURPOSE "Required to build wayland platform plugin and tests"
TYPE REQUIRED
)
# optional frameworks
find_package(KF5Activities ${KF5_MIN_VERSION} CONFIG)
set_package_properties(KF5Activities PROPERTIES
@ -420,7 +426,6 @@ if (BUILD_TESTING)
find_package(QtWaylandScanner ${QT_MIN_VERSION} REQUIRED)
find_package(Wayland REQUIRED COMPONENTS Client)
find_package(PlasmaWaylandProtocols CONFIG REQUIRED)
find_package(KF5Wayland ${KF5_MIN_VERSION} REQUIRED)
add_subdirectory(autotests)
add_subdirectory(tests)