From c47e4a73e6070dcef2d08ec8a27b1790b2848c7d Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 25 Mar 2019 09:01:02 +0100 Subject: [PATCH] Workaround qt5.13 bug --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f499209f..195ee7709 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,7 +142,12 @@ configure_file(config-enterprise.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ente include_directories(${kmail_SOURCE_DIR} ${kmail_BINARY_DIR}) configure_file(kmail-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kmail-version.h @ONLY) -add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) +# workaround for https://bugreports.qt.io/browse/QTBUG-74665 (bug in qt5.13 reevaluate it) +if (${Qt5Widgets_VERSION} STRGREATER "5.13") + MESSAGE(STATUS "Qt version: ${Qt5Widgets_VERSION} DISABLE compile without deprecated methods. bug QTBUG-74665") +else() + add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) +endif() if (${KF5Config_VERSION} STRGREATER "5.56.0") add_definitions(-DQT_NO_FOREACH) MESSAGE(STATUS "compile without foreach")