Repository navigation
build: raise CMake policy max to 4.4 - #1236
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Raise the
cmake_minimum_requiredpolicy 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
tABI. It then rejectsinclude/python3.Xtand reportsDevelopment.Moduleas 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.