Commit ec2e44f2 authored by Laurent Montel's avatar Laurent Montel 😁

Don't install kcursorsaver when we use kf5.73

parent b2318036
Pipeline #28105 passed with stage
in 13 minutes and 35 seconds
......@@ -39,6 +39,7 @@ find_package(KF5JobWidgets ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5KIO ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5KCMUtils ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5WidgetsAddons ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5GuiAddons ${KF5_MIN_VERSION} CONFIG REQUIRED)
option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON)
add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer")
......
......@@ -96,10 +96,17 @@ ecm_generate_headers(libkdepim_Camelcasewidgets_HEADERS
RELATIVE widgets
)
ecm_generate_headers(libkdepim_Camelcasemisc_old_HEADERS
HEADER_NAMES
KCursorSaver
REQUIRED_HEADERS libkdepim_misc_old_HEADERS
PREFIX Libkdepim
RELATIVE misc
)
ecm_generate_headers(libkdepim_Camelcasemisc_HEADERS
HEADER_NAMES
UiStateSaver
KCursorSaver
LineEditCatchReturnKey
REQUIRED_HEADERS libkdepim_misc_HEADERS
PREFIX Libkdepim
......@@ -152,6 +159,21 @@ install(FILES
COMPONENT Devel
)
if (${KF5GuiAddons_VERSION} VERSION_LESS "5.73.0")
MESSAGE(STATUS "Install old kcursorsaver")
install(FILES
${libkdepim_Camelcasemisc_old_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/Libkdepim
COMPONENT Devel
)
install(FILES
${libkdepim_misc_old_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/libkdepim
COMPONENT Devel
)
endif()
install(FILES
${PRI_FILENAME}
DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
......
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