Merge pull request #981 from yan12125/fix-kde-cmake-warnings

Fix KDEInstallDirs deprecation warnings
This commit is contained in:
Roeland Jago Douma 2019-01-07 09:49:07 +01:00 committed by GitHub
commit dc993d3ebe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,12 @@ set_package_properties(DolphinVcs PROPERTIES
PURPOSE "Provides plugin interfaces for Dolphin."
)
set(KDE_INSTALL_DIRS_NO_DEPRECATED TRUE)
include(KDEInstallDirs)
# Before KF5 5.54, kcoreaddons_add_plugin uses deprecated VAR PLUGIN_INSTALL_DIR
# when that is fixed and you want to remove this workaround,
# you need to _require_ the new enough kcoreaddons
set(PLUGIN_INSTALL_DIR "${KDE_INSTALL_PLUGINDIR}")
include(KDECMakeSettings)
include(KDECompilerSettings)
include(ECMMarkNonGuiExecutable)