QT6: set C++17

This commit is contained in:
Simon De Backer 2020-10-03 11:49:44 +02:00
parent 184560cc5d
commit 10cc3cdbb7
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
QT += core network
CONFIG += c++11
CONFIG += c++17
HEADERS += $$PWD/singleapplication.h \
$$PWD/singleapplication_p.h

View File

@ -220,7 +220,7 @@ UI_SOURCES_DIR = sources/ui/
UI_HEADERS_DIR = sources/ui/
# Configuration de la compilation
CONFIG += c++11 debug_and_release warn_on
CONFIG += c++17 debug_and_release warn_on
# Nom du binaire genere par la compilation
TARGET = qelectrotech
@ -229,8 +229,8 @@ TARGET = qelectrotech
unix:QMAKE_LIBS_THREAD -= -lpthread
unix|win32: LIBS += -lsqlite3
# Enable C++11
QMAKE_CXXFLAGS += -std=c++11
# Enable C++17
QMAKE_CXXFLAGS += -std=c++17
# Description de l'installation
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})