Skip to content

build: raise CMake policy max to 4.4 - #1236

Merged
henryiii merged 1 commit into
developfrom
cmake-policy-4.4
Nov 16, 2026
Merged

henryiii merged 1 commit into
developfrom
cmake-policy-4.4

Conversation

@henryiii

Copy link
Copy Markdown
Member

🤖 AI text below 🤖

Raise the cmake_minimum_required policy max from 4.0 to 4.4.

This turns on CMP0190. pybind11 then skips the Python interpreter search when cross-compiling. With the old policy, FindPython finds the interpreter but cannot query its ABI in a cross build, so it drops the free-threaded t ABI. It then rejects include/python3.Xt and reports Development.Module as missing. This broke the conda-forge linux-ppc64le cp314t/cp315t builds (conda-forge/iminuit-feedstock#121).

I checked a local native free-threaded wheel build and a cross-compile FindPython reproduction with the conda-forge ppc64le cp314t package.

With CMP0190 NEW, pybind11 skips the Python interpreter search when
cross-compiling. Under the old policy, FindPython drops the free-threaded
"t" ABI in cross builds and cannot find Development.Module.

Assisted-by: ClaudeCode:claude-opus-5-5
@henryiii
henryiii marked this pull request as ready for review November 16, 2026 21:51
@henryiii
henryiii merged commit fbf9693 into develop Nov 16, 2026
10 checks passed
@henryiii
henryiii deleted the cmake-policy-4.4 branch November 16, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant