Use OPTIONAL_COMPONENTS to search for KF5Wayland and DocTools
Summary: Otherwise cmakes complains when invoked with -DCMAKE_DISABLE_FIND_PACKAGE_KF5Wayland=TRUE: "CMake Error at /usr/share/cmake/Modules/FeatureSummary.cmake:459 (message): feature_summary() Error: REQUIRED package(s) are missing, aborting CMake run." Reviewers: #kde_connect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D12141
This commit is contained in:
parent
171eb0b571
commit
4a4e8216aa
2 changed files with 5 additions and 3 deletions
|
@ -15,8 +15,10 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DI
|
|||
|
||||
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Quick)
|
||||
|
||||
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes Notifications KIO KCMUtils)
|
||||
find_package(KF5 ${KF5_MIN_VERSION} COMPONENTS DocTools)
|
||||
find_package(KF5 ${KF5_MIN_VERSION}
|
||||
REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes Notifications KIO KCMUtils
|
||||
OPTIONAL_COMPONENTS DocTools
|
||||
)
|
||||
find_package(Qca-qt5 2.1.0 REQUIRED)
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
if(UNIX)
|
||||
find_package(KF5 ${KF5_MIN_VERSION} QUIET COMPONENTS Wayland)
|
||||
find_package(KF5 ${KF5_MIN_VERSION} QUIET OPTIONAL_COMPONENTS Wayland)
|
||||
|
||||
find_package(LibFakeKey QUIET)
|
||||
set_package_properties(LibFakeKey PROPERTIES DESCRIPTION "fake key events"
|
||||
|
|
Loading…
Reference in a new issue