Enable gcc >= 9 building

gcc-9
Simon Stürz 2021-07-26 14:27:20 +02:00
parent eff82a3a7e
commit 71108d76c6
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@ QT += dbus network
QMAKE_CXXFLAGS *= -Werror -std=c++11 -g
QMAKE_LFLAGS *= -std=c++11
gcc {
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")
COMPILER_MAJOR_VERSION = $$str_member($$COMPILER_VERSION)
greaterThan(COMPILER_MAJOR_VERSION, 7): QMAKE_CXXFLAGS += -Wno-deprecated-copy
}
DEFINES += VERSION_STRING=\\\"$${VERSION_STRING}\\\"
HEADERS += \