Qt: Disable deprecation warnings on newer Qts

This commit is contained in:
Vicki Pfau 2020-07-07 18:04:17 -07:00
parent 66be69151c
commit 6a7bec5eec
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ if(APPLE)
endif()
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
endif()
get_target_property(QT_TYPE Qt5::Core TYPE)
if(QT_TYPE STREQUAL STATIC_LIBRARY)
set(QT_STATIC ON)