Commit d417be95 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix autogenerate categories file

parent 6120e57a
......@@ -70,7 +70,9 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KF5 COMPONENT Devel
)
install(FILES kdav.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES kdav.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
endif()
add_subdirectory(src)
if(BUILD_TESTING)
......
......@@ -83,7 +83,13 @@ install(FILES
)
ecm_qt_declare_logging_category(libkdav_SRCS HEADER libkdav_debug.h IDENTIFIER KDAV_LOG CATEGORY_NAME org.kde.pim.kdav)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libkdav_SRCS HEADER libkdav_debug.h IDENTIFIER KDAV_LOG CATEGORY_NAME org.kde.pim.kdav)
else()
ecm_qt_declare_logging_category(libkdav_SRCS HEADER libkdav_debug.h IDENTIFIER KDAV_LOG CATEGORY_NAME org.kde.pim.kdav
DESCRIPTION "KDAV" EXPORT KDAV)
endif()
add_library(KF5DAV
${libkdav_SRCS}
......@@ -128,3 +134,6 @@ install(FILES
)
target_include_directories(KF5DAV INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/KF5/KDAV/;${KDE_INSTALL_INCLUDEDIR}/KF5/kdav;${KDE_INSTALL_INCLUDEDIR}/KF5>")
if (NOT ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_install_logging_categories(EXPORT KDAV FILE kdav.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
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