Commit 904fa069 authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix install in kf<version>

parent 4b260010
Pipeline #167087 passed with stage
in 3 minutes and 49 seconds
......@@ -18,7 +18,7 @@ set(firewalld_backend_SRCS
kcoreaddons_add_plugin(
firewalldbackend
SOURCES ${firewalld_backend_SRCS}
INSTALL_NAMESPACE "kf5/plasma_firewall")
INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/plasma_firewall")
target_link_libraries(firewalldbackend
Qt::DBus
......
......@@ -11,7 +11,7 @@ set(ufw_backend_SRCS
kcoreaddons_add_plugin(
ufwbackend
SOURCES ${ufw_backend_SRCS}
INSTALL_NAMESPACE "kf5/plasma_firewall")
INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/plasma_firewall")
target_link_libraries(ufwbackend
kcm_firewall_core
......
......@@ -301,7 +301,7 @@ void FirewallClient::setBackend(const QStringList &backendList)
m_currentBackend = nullptr;
}
const auto plugins = KPluginMetaData::findPlugins(QStringLiteral("kf5/plasma_firewall"));
const auto plugins = KPluginMetaData::findPlugins(QStringLiteral("kf" QT_STRINGIFY(QT_VERSION_MAJOR) "/plasma_firewall"));
QList<KPluginFactory*> factories;
for (const KPluginMetaData &metadata : plugins) {
......
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