all repos — mgba @ 6a7bec5eecdaf5226ff38ed3bdeb60a94e273458

mGBA Game Boy Advance Emulator

Qt: Disable deprecation warnings on newer Qts
Vicki Pfau vi@endrift.com
Tue, 07 Jul 2020 18:04:17 -0700
commit

6a7bec5eecdaf5226ff38ed3bdeb60a94e273458

parent

66be69151c55b9411c78435324a7d491e65203a2

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -45,6 +45,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")

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)