From 6a7bec5eecdaf5226ff38ed3bdeb60a94e273458 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 7 Jul 2020 18:04:17 -0700 Subject: [PATCH] Qt: Disable deprecation warnings on newer Qts --- src/platform/qt/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/qt/CMakeLists.txt b/src/platform/qt/CMakeLists.txt index 165a23f2a..cba2de1d7 100644 --- a/src/platform/qt/CMakeLists.txt +++ b/src/platform/qt/CMakeLists.txt @@ -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)