]> sigrok.org Git - pulseview.git/commit - CMakeLists.txt
CMakeLists.txt: adjust cmake build rules for Qt6 support
authorVesa-Pekka Palmu <redacted>
Sun, 20 Nov 2022 18:33:14 +0000 (20:33 +0200)
committerGerhard Sittig <redacted>
Wed, 30 Nov 2022 17:32:36 +0000 (18:32 +0100)
commit136995b831c50d3261143b1183c73af55c9ba3a5
treef6834b80544fd66e6f3d953badcfbf0fd0a2e512
parent1ed73ebd60336c7b12ee1807644dca719cb9835b
CMakeLists.txt: adjust cmake build rules for Qt6 support

Check for the availability of Qt5 as well as Qt6. Prefer Qt5 for
backwards compatibility, but accept when only Qt6 is available.
This unbreaks Mac OSX 12 builds with homebrew.

This change is based on work that was submitted by Dominik Sliwa
<redacted>.

It is assumed that failed tests for timestamps to text conversion
(the format_time_minutes() routine) and Qt widgets not being thread
safe are issues that do reproduce more often on the Mac platform
but are independent from Qt6 support. These issues will be dealt with
separately.
CMakeLists.txt