Commit 39c110e3 authored by Milian Wolff's avatar Milian Wolff Committed by Kevin Funk

Link against KF5::Purpose if it's available

Summary: The lib is not experimental anymore.

Reviewers: #kdevelop, apol

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D9921

(cherry picked from commit 831cf5f9)
parent 51233ccd
......@@ -4,13 +4,17 @@ set_package_properties(LibKompareDiff2 PROPERTIES
TYPE REQUIRED
)
find_package(KDEExperimentalPurpose QUIET)
set_package_properties(KDEExperimentalPurpose PROPERTIES DESCRIPTION "EXPERIMENTAL. Support for patch sharing"
URL "https://projects.kde.org/projects/playground/libs/purpose"
find_package(KF5Purpose CONFIG QUIET)
set_package_properties(KF5Purpose PROPERTIES DESCRIPTION "Support for patch sharing"
TYPE OPTIONAL
)
if (NOT KF5Purpose_FOUND)
find_package(KDEExperimentalPurpose QUIET)
set_package_properties(KDEExperimentalPurpose PROPERTIES DESCRIPTION "EXPERIMENTAL. Support for patch sharing"
URL "https://projects.kde.org/projects/playground/libs/purpose"
TYPE OPTIONAL
)
endif()
add_definitions(-DTRANSLATION_DOMAIN=\"kdevpatchreview\")
kde_enable_exceptions()
......@@ -49,7 +53,10 @@ target_link_libraries(kdevpatchreview
KF5::TextEditor
KF5::Parts
)
if (KDEExperimentalPurpose_FOUND)
if (KF5Purpose_FOUND)
target_compile_definitions(kdevpatchreview PRIVATE WITH_PURPOSE)
target_link_libraries(kdevpatchreview KF5::PurposeWidgets)
elseif (KDEExperimentalPurpose_FOUND)
target_compile_definitions(kdevpatchreview PRIVATE WITH_PURPOSE)
target_link_libraries(kdevpatchreview KDEExperimental::PurposeWidgets)
endif()
Markdown is supported
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