diff --git a/CMakeLists.txt b/CMakeLists.txt index c26f98738b072f095dbd637c852dd5901f6f4a60..f26372ae1ff138bdf249a914bd106fec9bf7d7d9 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