Merge PR #32: Build with gcc 9

pull/35/head
Jenkins nymea 2021-09-09 13:01:36 +02:00
commit ad0c3b3754
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])