Use the new logging category directory with ECM >= 5.59.0

wilder-5.17
Luca Beltrame 7 years ago
parent 98a9f24b76
commit 0f38bdced0
No known key found for this signature in database
GPG Key ID: 8DF631FD021DB0C5
  1. 6
      klipper/CMakeLists.txt
  2. 7
      libnotificationmanager/CMakeLists.txt

@ -104,5 +104,9 @@ if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
install( FILES klipper.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
if (${ECM_VERSION} STRGREATER "5.58.0")
install( FILES klipper.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} )
else()
install( FILES klipper.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
endif()

@ -32,7 +32,12 @@ ecm_qt_declare_logging_category(notificationmanager_LIB_SRCS
HEADER debug.h
IDENTIFIER NOTIFICATIONMANAGER
CATEGORY_NAME org.kde.plasma.notifications)
install(FILES libnotificationmanager.categories DESTINATION ${KDE_INSTALL_CONFDIR})
if (${ECM_VERSION} STRGREATER "5.58.0")
install(FILES libnotificationmanager.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else()
install(FILES libnotificationmanager.categories DESTINATION ${KDE_INSTALL_CONFDIR})
endif()
# Settings
kconfig_add_kcfg_files(notificationmanager_LIB_SRCS kcfg/donotdisturbsettings.kcfgc)

Loading…
Cancel
Save