[Pkg-cmake-team] Bug#1024625: cmake-data: FindPython.cmake points to newest Python version, not the default

Timo Röhling roehling at debian.org
Thu Nov 24 20:51:00 GMT 2022


Hi Andrius,

* Andrius Merkys <merkys at debian.org> [2022-11-24 13:25]:
>find_package(Python 3.6 REQUIRED COMPONENTS Interpreter Development)
>
>However, CMake output is the following:
>
>-- Found Python: /usr/bin/python3.11 (found suitable version "3.11.0", 
>minimum required is "3.6") found components: Interpreter Development 
>Development.Module Development.Embed
It took me a while, but I found the problem: starting with version
3.15, CMake introduced a new search strategy, so my tests with

cmake_minimum_required(VERSION 3.25)

worked fine, but as soon as you go below 3.15 it breaks again.
I'll upload a fix shortly.


Cheers
Timo


-- 
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20221124/920fcd40/attachment.sig>


More information about the Pkg-cmake-team mailing list