diff options
author | Jørgen Lind <jorgen.lind@digia.com> | 2014-11-13 15:05:03 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@digia.com> | 2014-11-13 15:21:07 +0100 |
commit | 1e0516fc69296bea7f4498127b5bd425cba15ae4 (patch) | |
tree | 53996d40f7e240a1f3ce150f38478a81cf2eaf24 /tests | |
parent | 4f3a1f49680fa53186b2f2673d26fc6bc3288a94 (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/kernel/qvariant/qvariant.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qvariant/qvariant.pro b/tests/auto/corelib/kernel/qvariant/qvariant.pro index f8d054f70c..39178ba9e6 100644 --- a/tests/auto/corelib/kernel/qvariant/qvariant.pro +++ b/tests/auto/corelib/kernel/qvariant/qvariant.pro @@ -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 |