Build system fixes

The first two commits in this series fix Policy violations.

The other fix various issues I discovered while trying to build my own version of OpenCV and noticing various issues.

The only major change is the last commit in the series: it switches the backend of the highgui module from GTK to Qt. This does enable more functionality, so I think it is a good switch.

You're welcome to use the commits as they are or change them as you see fit.

Merge request reports

Loading