Commit 5dadcc93 authored by Tobias Deiminger's avatar Tobias Deiminger Committed by Albert Astals Cid

Compile Qt5 frontend with -DQT_STRICT_ITERATORS

QT_STRICT_ITERATORS prevents conversion from non-const iterator to const iterator.

It helps detecting situations where we waste resources due to
needless detach from implicitely shared container data (i.e. deep copy).

If anyone should run into problems, they can disable strict iterators
using a global cache variable:

$ cmake DENABLE_QT_STRICT_ITERATORS=OFF [...]
parent 3105b61e
set(CMAKE_AUTOMOC ON)
set(ENABLE_QT_STRICT_ITERATORS ON CACHE BOOL "Select whether to compile with QT_STRICT_ITERATORS. Leave it ON, unless your Qt lacks support, or your compiler can't do SRA optimization.")
if(ENABLE_QT_STRICT_ITERATORS)
add_definitions(-DQT_STRICT_ITERATORS)
endif()
add_subdirectory(src)
add_subdirectory(tests)
add_subdirectory(demos)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment