Add C++11 if available for QVariant autotest
gcc 4.9 has the __has_include feature which enables the TEST_FORWARD_LIST and includes the forward_list header. This in turn checks that the c++11 flags are enabled, or throws an error. Change-Id: I44aa58e47c2f9ba6f14cb5a68d24da4a76698e5f Reviewed-by: Olivier Goffart <ogoffart@woboq.com>bb10
parent
4f3a1f4968
commit
1e0516fc69
|
|
@ -6,3 +6,4 @@ INCLUDEPATH += $$PWD/../../../other/qvariant_common
|
|||
SOURCES = tst_qvariant.cpp
|
||||
RESOURCES += qvariant.qrc
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
|
||||
contains(QT_CONFIG, c++11): CONFIG += c++11
|
||||
|
|
|
|||
Loading…
Reference in New Issue