]> sigrok.org Git - pulseview.git/commit
Add a workaround for QTBUG-22829.
authorUwe Hermann <redacted>
Sat, 28 Feb 2015 19:39:06 +0000 (20:39 +0100)
committerUwe Hermann <redacted>
Sat, 28 Feb 2015 19:49:32 +0000 (20:49 +0100)
commit0661570b953f656b96762fc5ba81b9ee6b6fd83a
treee0fa1d29f95fce7563a3a9b59cd7f495f8714799
parent627ffe3f3a5d0a8f38e35668bd4ed71321f09b91
Add a workaround for QTBUG-22829.

Qt4's MOC has issues parsing some C++ constructs, yielding errors like:

  [...]/include/boost/type_traits/detail/has_binary_operator.hp:50:
    Parse error at "BOOST_JOIN"

Full details:

  https://bugreports.qt.io/browse/QTBUG-22829

Use -DBOOST_NEXT_PRIOR_HPP_INCLUDED as MOC option to workaround these
issues. This is currently sufficient, however, depending on the future
PulseView code it may be necessary to add further options mentioned in the
above bugreport (e.g.  BOOST_TT_HAS_OPERATOR_HPP_INCLUDED,
BOOST_LEXICAL_CAST_INCLUDED, BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION).

This fixes bug #532 (fixing the build on at least Mac OS X and MinGW).
CMakeLists.txt
test/CMakeLists.txt