mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
Properly find the Purpose framework
Now that we require KF5 5.44 Reviewers: #okular, aacid Subscribers: okular-devel Tags: #okular Differential Revision: https://phabricator.kde.org/D16544
This commit is contained in:
parent
7254c1826c
commit
ff2f60754d
1 changed files with 5 additions and 5 deletions
|
@ -96,13 +96,13 @@ set_package_properties(KF5Kirigami2 PROPERTIES
|
|||
TYPE RUNTIME
|
||||
)
|
||||
find_package(Phonon4Qt5 CONFIG REQUIRED)
|
||||
find_package(KDEExperimentalPurpose)
|
||||
set_package_properties(KDEExperimentalPurpose PROPERTIES
|
||||
find_package(KF5Purpose)
|
||||
set_package_properties(KF5Purpose PROPERTIES
|
||||
DESCRIPTION "A framework for services and actions integration"
|
||||
PURPOSE "Required for enabling the share menu in Okular"
|
||||
TYPE OPTIONAL
|
||||
)
|
||||
if (KDEExperimentalPurpose_FOUND)
|
||||
if (KF5Purpose_FOUND)
|
||||
set(PURPOSE_FOUND 1)
|
||||
else()
|
||||
set(PURPOSE_FOUND 0)
|
||||
|
@ -424,8 +424,8 @@ if(KF5Wallet_FOUND)
|
|||
target_link_libraries(okularpart KF5::Wallet)
|
||||
endif()
|
||||
|
||||
if (KDEExperimentalPurpose_FOUND)
|
||||
target_link_libraries(okularpart KDEExperimental::PurposeWidgets)
|
||||
if (KF5Purpose_FOUND)
|
||||
target_link_libraries(okularpart KF5::PurposeWidgets)
|
||||
endif()
|
||||
|
||||
set_target_properties(okularpart PROPERTIES PREFIX "")
|
||||
|
|
Loading…
Reference in a new issue