1
0
Fork 0

Don't warn about deprecated declarations with Qt 6

This commit is contained in:
Ilya Fedin 2021-10-21 08:58:28 +04:00 committed by John Preston
parent a8856aa831
commit 6ef834cf3c

View file

@ -36,6 +36,14 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
) )
endif() 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) if (DESKTOP_APP_SPECIAL_TARGET)
target_compile_options(common_options target_compile_options(common_options
INTERFACE INTERFACE