From 6ef834cf3cb9fa5e81e63a4f5cd3ba1eedbd75de Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 21 Oct 2021 08:58:28 +0400 Subject: [PATCH] Don't warn about deprecated declarations with Qt 6 --- options_linux.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/options_linux.cmake b/options_linux.cmake index 24f0e0e..0310845 100644 --- a/options_linux.cmake +++ b/options_linux.cmake @@ -36,6 +36,14 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") ) endif() +# TODO: Remove when there will be no Qt 5 support +if (DESKTOP_APP_QT6) + target_compile_options(common_options + INTERFACE + -Wno-deprecated-declarations + ) +endif() + if (DESKTOP_APP_SPECIAL_TARGET) target_compile_options(common_options INTERFACE