juzzlin / Heimer

Heimer is a simple cross-platform mind map, diagram, and note-taking tool written in Qt.
GNU General Public License v3.0
887 stars 112 forks source link

Add WITH_QT6 option #223

Closed nunotexbsd closed 1 year ago

nunotexbsd commented 1 year ago

On systems with both qt5 and qt6 installed, cmake will use qt6 by default. Sugestion on adding an option WITH_QT6=OFF by default. I've take this from https://github.com/hluk/CopyQ/blob/master/CMakeLists.txt where qt6 is still experimental so this option is turned off.

I'm maintaining FreeBSD port(https://www.freshports.org/graphics/heimer/) and it builds fine under poudriere jails because port only ask for qt5, but it fails on my local account because I have both qt5 and qt6 installed.

I'm not a programmer, so please optimize or correct my sugestion.

Cheers, Nuno Teixeira

juzzlin commented 1 year ago

Merged, thanks!

I need to take a look at the Qt6 build at some point.