Commit d6c7309b authored by Laurent Montel's avatar Laurent Montel 😁

Prison is in kf5 from long time

parent 7322d2ca
......@@ -48,15 +48,8 @@ find_package(KF5AkonadiMime ${AKONADI_MIME_VERSION} CONFIG REQUIRED)
find_package(KF5Akonadi ${AKONADI_VERSION} CONFIG REQUIRED)
set(Prison_MIN_VERSION "${KF5_VERSION}")
find_package(KF5Prison ${Prison_MIN_VERSION})
set_package_properties(Prison PROPERTIES
DESCRIPTION "Prison"
URL "http://projects.kde.org/prison"
TYPE OPTIONAL
PURPOSE "Needed to show mobile barcodes of your contacts")
if (KF5Prison_FOUND)
add_definitions(-DHAVE_PRISON)
endif()
find_package(KF5Prison ${Prison_MIN_VERSION} CONFIG REQUIRED)
add_definitions(-DHAVE_PRISON)
########### Targets ###########
......
......@@ -136,12 +136,9 @@ target_link_libraries(KF5AkonadiContact
KF5::TextWidgets
KF5::XmlGui
KF5::ContactEditor
KF5::Prison
)
if(KF5Prison_FOUND)
target_link_libraries(KF5AkonadiContact PRIVATE KF5::Prison)
endif()
set_target_properties(KF5AkonadiContact PROPERTIES
VERSION ${AKONADICONTACT_VERSION_STRING}
......
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