Commit f2ca6270 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use KDE_INSTALL_LOGGINGCATEGORIESDIR for kdebugsettings .categories files

parent d940a88e
......@@ -180,7 +180,11 @@ install(FILES
install(EXPORT KDevelopTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" NAMESPACE KDev:: FILE KDevelopTargets.cmake)
# kdebugsettings file
install(FILES kdevelop.categories DESTINATION ${KDE_INSTALL_CONFDIR})
if (ECM_VERSION VERSION_GREATER "5.58.0")
install(FILES kdevelop.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else()
install(FILES kdevelop.categories DESTINATION ${KDE_INSTALL_CONFDIR})
endif()
# CTestCustom.cmake has to be in the CTEST_BINARY_DIR.
# in the KDE build system, this is the same as CMAKE_BINARY_DIR.
......
......@@ -16,6 +16,10 @@ find_package(KDevPlatform 5.2.40 REQUIRED)
add_subdirectory(src)
# kdebugsettings file
install(FILES %{APPNAMELC}.categories DESTINATION ${KDE_INSTALL_CONFDIR})
if (ECM_VERSION VERSION_GREATER "5.58.0")
install(FILES %{APPNAMELC}.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else()
install(FILES %{APPNAMELC}.categories DESTINATION ${KDE_INSTALL_CONFDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -89,4 +89,8 @@ install( EXPORT KDevPlatformTargets
FILE KDevPlatformTargets.cmake )
# kdebugsettings file
install( FILES kdevplatform.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
if (ECM_VERSION VERSION_GREATER "5.58.0")
install(FILES kdevplatform.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else()
install(FILES kdevplatform.categories DESTINATION ${KDE_INSTALL_CONFDIR})
endif()
Markdown is supported
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