https://bugs.kde.org/show_bug.cgi?id=401888
Bug ID: 401888 Summary: kcoreaddons_add_plugin cannot be used with KDEInstallDirs without deprecation warning Product: frameworks-kcoreaddons Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: mp...@kde.org Reporter: k...@dominik-schmidt.de CC: kdelibs-b...@kde.org Target Milestone: --- SUMMARY kcoreaddons_add_plugin uses PLUGIN_INSTALL_DIR[1] which is deprecated in KDEInstallDirs. So either you get a lot of warnings from KDEInstallDirs because you did not set KDE_INSTALL_DIRS_NO_DEPRECATED to true or you need to set set(PLUGIN_INSTALL_DIR "${KDE_INSTALL_PLUGINDIR}") after doing so in order to make kcoreaddons_add_plugin work. [1] https://github.com/KDE/kcoreaddons/blob/2af64ee1e2953fb0db58885bb093897ea38972f3/KF5CoreAddonsMacros.cmake STEPS TO REPRODUCE 1. set(KDE_INSTALL_DIRS_NO_DEPRECATED TRUE) to avoid deprecation warnings 2. include(KDEInstallDirs) 3. kcoreaddons_add_plugin(...) OBSERVED RESULT Installation lacks the PLUGIN_DIR prefix and tries to install to ${INSTALL_NAMESPACE} in "/". EXPECTED RESULT Plugin is correctly installed into prefix. -- You are receiving this mail because: You are watching all bug changes.