Commit 1eaecb2d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare using future KF6TextTemplate

parent 43e684cf
Pipeline #131164 passed with stage
in 1 minute and 50 seconds
......@@ -65,7 +65,13 @@ find_package(KF5Akonadi ${AKONADI_VERSION} CONFIG REQUIRED)
find_package(KF5GrantleeTheme ${GRANTLEETHEME_LIB_VERSION} CONFIG REQUIRED)
find_package(Grantlee5 ${GRANTLEE_LIB_VERSION} CONFIG REQUIRED)
if (QT_MAJOR_VERSION STREQUAL "5")
find_package(Grantlee5 ${GRANTLEE_VERSION} CONFIG REQUIRED)
set(MAIN_LIB Grantlee5::Templates)
else()
find_package(KF6TextTemplate ${KF5_MIN_VERSION} CONFIG REQUIRED)
set(MAIN_LIB KF6TextTemplate::Templates)
endif()
############### Compilers flags ###############
......
......@@ -230,7 +230,7 @@ target_link_libraries(KF5AkonadiContact
KF5::XmlGui
KF5::ContactEditor
KF5::Prison
Grantlee5::Templates
${MAIN_LIB}
)
if(TARGET KF5::I18nLocaleData)
target_link_libraries(KF5AkonadiContact PRIVATE KF5::I18nLocaleData)
......
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