Make build with gcc-9

pull/32/head
Simon Stürz 2021-09-03 09:35:17 +02:00
parent d4094dae7b
commit 860fff977a
2 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,12 @@ QT += network serialbus
TARGET = nymea-sunspec1
TEMPLATE = lib
gcc {
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")
COMPILER_MAJOR_VERSION = $$str_member($$COMPILER_VERSION)
greaterThan(COMPILER_MAJOR_VERSION, 7): QMAKE_CXXFLAGS += -Wno-deprecated-copy
}
# Include the autogenerated models
include(models/models.pri)

View File

@ -16,6 +16,11 @@ PLUGIN_DIRS = \
wallbe \
webasto \
gcc {
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")
COMPILER_MAJOR_VERSION = $$str_member($$COMPILER_VERSION)
greaterThan(COMPILER_MAJOR_VERSION, 7): QMAKE_CXXFLAGS += -Wno-deprecated-copy
}
message(============================================)
message("Qt version:" $$[QT_VERSION])