Hello all,

Some ports have started to include qt6 support like deskutils/copyq
<https://www.freshports.org/deskutils/copyq/>

My doubt is how should I include qt6 in this port: an QT6 option or "force"
update it to qt6 by default.

CMakeLists.txt:
---
OPTION(WITH_QT6 "Enable Qt 6" OFF)
if (WITH_QT6)
set(QT_DEFAULT_MAJOR_VERSION 6)
find_package(Qt6Widgets 6.1.0 REQUIRED)
set(copyq_qt Qt6)
add_definitions( -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 )
else()
set(QT_DEFAULT_MAJOR_VERSION 5)
find_package(Qt5Widgets 5.8.0 REQUIRED)
set(copyq_qt Qt5)
---

Thanks,
-- 
Nuno Teixeira
FreeBSD Committer (ports)

Reply via email to