Qt 6 errors on Windows
Kornel Benko
kornel at lyx.org
Mon May 24 16:47:31 UTC 2021
Am Mon, 24 May 2021 18:19:47 +0200
schrieb Yu Jin <yu_jin at lyx.org>:
> Am Mo., 24. Mai 2021 um 15:19 Uhr schrieb Kornel Benko <kornel at lyx.org>:
>
> > Am Mon, 24 May 2021 09:50:27 +0200
> > schrieb Yu Jin <yu_jin at lyx.org>:
> > > I found what causes this, it is the /Zc compile option. With Qt5 it is
> > set
> > > to wchar_t and with Qt6 to wchar_t- in all targets, which causes
> > troubles.
> > > I have changed it in Visual Studio on a test basis and successfully
> > > compiled LyX, but I guess it would need to be changed in CMake code.
> > > Kornel, can you help me out here?
> >
> > This is set at ./CMakeLists.txt:1112
> > Try to change
> > if (NOT Qt5Core_FOUND)
> > to
> > if (NOT (Qt5Core_FOUND OR Qt6Core_FOUND))
> >
>
> Yes, that worked, should I commit?
Yes please.
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210524/3e61d748/attachment.asc>
More information about the lyx-devel
mailing list