CMake: cofigure failure (Windows)

Kornel Benko kornel at lyx.org
Tue Nov 17 20:50:57 UTC 2020


Am Tue, 17 Nov 2020 19:01:29 +0100
schrieb Yu Jin <yu_jin at lyx.org>:

> Am Mo., 16. Nov. 2020 um 23:01 Uhr schrieb Kornel Benko <kornel at lyx.org>:
> 
> > Am Mon, 16 Nov 2020 22:16:22 +0100
> > schrieb Yu Jin <yu_jin at lyx.org>:
> > ...
> > > >> In master it is called before the options,
> > > >> while in branch it is called after the options specs.
> > > >>
> > > >
> > > > Yeah, thought so. I tried to move it behind the options which end at
> > line
> > > > 250 something. But then I get this error instead:
> > > >
> > > > CMake Error at development/cmake/modules/FindQt4.cmake:1037 (message):
> > > >   Qt qmake not found!
> > > > Call Stack (most recent call first):
> > > >   CMakeLists.txt:813 (find_package)
> > > >
> > > > and GNUWIN32_DIR is not asked, I put:
> > > >
> > > > message(STATUS "GNUWIN32_DIR: ${GNUWIN32_DIR}")
> > > >
> > > > right after that include and it shows:
> > > >
> > > > GNUWIN32_DIR:
> > > >
> > > > so the variable is empty, but CMake doesn't output an error and it also
> > > > doesn't show this variable in the GUI.
> > > >
> > > And then if I just ignore it and continue I get the Perl error from OP.
> >
> > Could you please play a little with FindGNUWIN32.cmake? It is already 9
> > years
> > old, so it may be ready for some polishing.
> >
> 
> Sure, I did that, looks fine though... I found a way to fix this anyway,
> patch attached, let me know if I can commit.

Tested on linux. The created CMakeCache.txt's are identical (with and without the patch).
If that works on Windows, please commit.

	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/20201117/b856d431/attachment.asc>


More information about the lyx-devel mailing list