Force C++11 if gxs mail is enabled

This commit is contained in:
Gioacchino Mazzurco 2017-02-26 13:13:55 +01:00
parent b4727bde29
commit 7c74cae1ef

View File

@ -182,4 +182,12 @@ rs_nocppwarning {
warning("QMAKE: You have disable C preprocessor warnings.") 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
}
}