CMake: cofigure failure (Windows)

Kornel Benko kornel at lyx.org
Sun Nov 15 11:56:50 UTC 2020


Am Sun, 15 Nov 2020 11:32:34 +0100
schrieb Yu Jin <yu_jin at lyx.org>:

> I can not configure master with CMake currently, it says:
> 
> CMake Error at C:/Program
> Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146
> (message):
>   Could NOT find Perl (missing: PERL_EXECUTABLE)
> Call Stack (most recent call first):
>   C:/Program
> Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393
> (_FPHSA_FAILURE_MESSAGE)
>   C:/Program Files/CMake/share/cmake-3.16/Modules/FindPerl.cmake:76
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>   CMakeLists.txt:1216 (find_package)
> 
> I also noticed that it does not ask for GNUWIN32_DIR anymore. I added it
> manually, but PERL was still not found.

You have to investigate the cmake module FomdPerl.cmake.
It may help, if you use HINTS, for instance for path D:\xxxx
	find_package(Perl REQUIRED PATHS "D:\\xxxx")

At least, this one works on linux too.

	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/20201115/48f477a4/attachment.asc>


More information about the lyx-devel mailing list