Build gcc 9 and fix install path

This commit is contained in:
Simon Stürz 2021-09-05 12:58:29 +02:00
parent 29c44d4669
commit 70ec8280ad
3 changed files with 7 additions and 2 deletions

1
debian/control vendored
View File

@ -5,7 +5,6 @@ Maintainer: Simon Stürz <simon.stuerz@nymea.io>
Build-Depends: debhelper (>= 9.0.0),
dpkg-dev (>= 1.16.1~),
qt5-default,
qt5-qmake,
qtbase5-dev,
qtbase5-dev-tools
Standards-Version: 3.9.7

View File

@ -15,5 +15,5 @@ HEADERS += \
SOURCES += main.cpp \
application.cpp
target.path = /usr/bin
target.path = $$[QT_INSTALL_PREFIX]/bin
INSTALLS += target

View File

@ -2,6 +2,12 @@
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
}
QT -= gui
top_srcdir=$$PWD