From 1ddd0074b3db3034f92c36a86839bc8189189284 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 20 Jul 2023 09:06:07 +0200 Subject: [PATCH] Set c++17 for PTU5-YOCTO --- OnDemandUpdatePTU.pro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OnDemandUpdatePTU.pro b/OnDemandUpdatePTU.pro index 233468c..e253043 100644 --- a/OnDemandUpdatePTU.pro +++ b/OnDemandUpdatePTU.pro @@ -44,6 +44,8 @@ contains( CONFIG, PTU5 ) { } contains( CONFIG, PTU5_YOCTO ) { greaterThan(QT_MAJOR_VERSION, 4): QT += serialport + QMAKE_CXXFLAGS += -std=c++17 # for GCC >= 4.7 + QMAKE_CXXFLAGS += -Wno-deprecated-copy PTU5BASEPATH = /opt/devel/ptu5 ARCH = PTU5 DEFINES+=PTU5