diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -15,10 +15,6 @@ ecm_qt_declare_logging_category(sonnetcore_SRCS HEADER core_debug.h IDENTIFIER SONNET_LOG_CORE CATEGORY_NAME sonnet.core) -# Dear packagers, this is just used as an extra search paths for plugins. Don't get your panties in a twist. -add_definitions(-DINSTALLATION_PLUGIN_PATH="${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_PLUGINDIR}") - - add_library(KF5SonnetCore ${sonnetcore_SRCS}) generate_export_header(KF5SonnetCore BASE_NAME SonnetCore EXPORT_FILE_NAME sonnetcore_export.h) add_library(KF5::SonnetCore ALIAS KF5SonnetCore) diff --git a/src/core/loader.cpp b/src/core/loader.cpp --- a/src/core/loader.cpp +++ b/src/core/loader.cpp @@ -271,8 +271,7 @@ void Loader::loadPlugins() { #ifndef SONNET_STATIC - const QStringList libPaths = QCoreApplication::libraryPaths() << QStringLiteral( - INSTALLATION_PLUGIN_PATH); + const QStringList libPaths = QCoreApplication::libraryPaths(); const QLatin1String pathSuffix("/kf5/sonnet/"); int plugins = 0; Q_FOREACH (const QString &libPath, libPaths) {