From 7c74cae1ef0f77384f41140a4a050aaa338c9409 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Sun, 26 Feb 2017 13:13:55 +0100 Subject: [PATCH] Force C++11 if gxs mail is enabled --- retroshare.pri | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/retroshare.pri b/retroshare.pri index 52d81d9a1..05ccf0469 100644 --- a/retroshare.pri +++ b/retroshare.pri @@ -182,4 +182,12 @@ rs_nocppwarning { warning("QMAKE: You have disable C preprocessor warnings.") } -rs_gxs_mail:DEFINES *= RS_GXS_MAIL +rs_gxs_mail { + DEFINES *= RS_GXS_MAIL + greaterThan(QT_MAJOR_VERSION, 4) { + CONFIG += c++11 + } else { + QMAKE_CXXFLAGS += -std=c++0x + } +} +