Don't warn about deprecated declarations with Qt 6
This commit is contained in:
parent
a8856aa831
commit
6ef834cf3c
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue