diff options
author | David Faure <faure@kde.org> | 2019-05-21 09:30:05 +0200 |
---|---|---|
committer | David Faure <faure@kde.org> | 2019-05-22 09:49:48 +0200 |
commit | 79665b067c9dd6344b84dd1b72afae401608fd87 (patch) | |
tree | 08f7b7e2779f1cd0186ae520fc94b8b6ed421ef0 /CMakeLists.txt | |
parent | 7f2760a07ee7f8a7f484ab048883b9374add8733 (diff) | |
download | extra-cmake-modules-79665b067c9dd6344b84dd1b72afae401608fd87.tar.gz extra-cmake-modules-79665b067c9dd6344b84dd1b72afae401608fd87.tar.bz2 |
Don't enable QT_STRICT_ITERATORS on Windows.
Summary:
Strict iterators can't be used on Windows, they lead to a link error
when application code iterates over a QVector<QPoint> for instance, unless
Qt itself was also built with strict iterators.
See example at https://bugreports.qt.io/browse/AUTOSUITE-946
Technically this would be fine for mingw, but not for MSVC neither
clang-cl (which also uses the MSVC ABI). I think it's fine to just
disable it for all Windows compilers, since any iterators misuse
will be detected on Unix anyway.
Test Plan: None, I'm relying on Volker's findings.
Reviewers: vkrause, dvratil
Reviewed By: dvratil
Subscribers: apol, kde-frameworks-devel, kde-buildsystem
Tags: #frameworks, #build_system
Differential Revision: https://phabricator.kde.org/D21314
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions