Commit 19c7453c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

install plugin in pim<version>

parent d74f590d
Pipeline #186702 passed with stage
in 2 minutes and 24 seconds
......@@ -21,7 +21,7 @@ target_link_libraries(akonadi_search_plugin
KF5::Contacts
)
install(TARGETS akonadi_search_plugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/akonadi)
install(TARGETS akonadi_search_plugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim${QT_MAJOR_VERSION}/akonadi)
if(BUILD_TESTING)
add_subdirectory(autotests)
......
......@@ -78,7 +78,7 @@ SearchStore::List SearchStore::searchStores()
const QStringList paths = QCoreApplication::libraryPaths();
for (const QString &libraryPath : paths) {
const QString path(libraryPath + QStringLiteral("/akonadi"));
const QString path(libraryPath + QStringLiteral("pim" QT_STRINGIFY(QT_VERSION_MAJOR)) + QStringLiteral("/akonadi"));
QDir dir(path);
if (!dir.exists()) {
......
......@@ -8,4 +8,4 @@ target_link_libraries(calendarsearchstore
KF5AkonadiSearchXapian
)
install(TARGETS calendarsearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/akonadi)
install(TARGETS calendarsearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim${QT_MAJOR_VERSION}/akonadi)
......@@ -8,4 +8,4 @@ target_link_libraries(contactsearchstore
KF5AkonadiSearchXapian
)
install(TARGETS contactsearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/akonadi)
install(TARGETS contactsearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim${QT_MAJOR_VERSION}/akonadi)
......@@ -8,4 +8,4 @@ target_link_libraries(emailsearchstore
KF5AkonadiSearchXapian
)
install(TARGETS emailsearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/akonadi)
install(TARGETS emailsearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim${QT_MAJOR_VERSION}/akonadi)
......@@ -8,4 +8,4 @@ target_link_libraries(notesearchstore
KF5AkonadiSearchXapian
)
install(TARGETS notesearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/akonadi)
install(TARGETS notesearchstore DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim${QT_MAJOR_VERSION}/akonadi)
Supports Markdown
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