CMake FindPythonInterp deprecated

Kornel Benko kornel at
Wed Nov 27 18:54:33 UTC 2019

Am Wed, 27 Nov 2019 18:09:44 +0100
schrieb pdv <pdvisschere at>:

> find_package(PythonInterp ...) is deprecated since CMake 3.12.
> With the current master build on MacOS CMake returns 
> `Python3_EXECUTABLE=Python3.5` although Python3.7 is selected with macports.
> Using the recommended find_package(Python3 ...) CMake returns 
> `Python3_EXECUTABLE=Python3.7`. (patch included)
> Patrick

No need to query for LYX_PYTHON_EXECUTABLE  before calling the find_package().
Therefore the patch could be as in the attached.

BTW, I never saw any deprecated message ... only looking into FindPythonInterp.cmake
there is a hint.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists.txt.patch
Type: text/x-patch
Size: 1135 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <>

More information about the lyx-devel mailing list