From 4d2c40e2207b6be3a6f70742ccc295a515817ec8 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sun, 15 Sep 2019 09:10:52 +0200 Subject: [PATCH] It compiles fine without deprecated method --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c26f987..f26372a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,9 @@ if (${KF5Config_VERSION} STRGREATER "5.56.0") add_definitions(-DQT_NO_FOREACH) MESSAGE(STATUS "compile without foreach") endif() +if (EXISTS "${CMAKE_SOURCE_DIR}/.git") + add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) +endif() add_definitions( -DQT_STRICT_ITERATORS -- GitLab