Skip to content

fix(cmake): find python for pybind11 without the removed module - #89

Open
EnriqueParodi wants to merge 1 commit into
test/rest-flaky-default-configfrom
fix/pybind11-python-discovery
Open

fix(cmake): find python for pybind11 without the removed module#89
EnriqueParodi wants to merge 1 commit into
test/rest-flaky-default-configfrom
fix/pybind11-python-discovery

Conversation

@EnriqueParodi

@EnriqueParodi EnriqueParodi commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

pybind11 looks for Python through FindPythonLibs unless told otherwise, and CMake
3.27 deprecated that module; pinning CMP0148 to OLD only delays the break and
warns twice on every configure. PYBIND11_FINDPYTHON sends it to FindPython, and
the hint keeps it on the interpreter this project already found.

@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from a02cecb to ea320c0 Compare August 18, 2026 23:15
@EnriqueParodi
EnriqueParodi force-pushed the test/rest-flaky-default-config branch from 83f14ce to 0271e1b Compare August 18, 2026 23:15
@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from ea320c0 to 58567b7 Compare August 18, 2026 23:19
@EnriqueParodi
EnriqueParodi force-pushed the test/rest-flaky-default-config branch 2 times, most recently from a9d1f56 to 3dec10d Compare August 18, 2026 23:47
@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from 58567b7 to 2a8df5f Compare August 18, 2026 23:47
@EnriqueParodi
EnriqueParodi marked this pull request as ready for review August 19, 2026 00:06
@EnriqueParodi
EnriqueParodi force-pushed the test/rest-flaky-default-config branch from 3dec10d to bc1ae1f Compare August 19, 2026 07:42
@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from 2a8df5f to 2aba493 Compare August 19, 2026 07:42
@EnriqueParodi
EnriqueParodi force-pushed the test/rest-flaky-default-config branch from bc1ae1f to 0e90241 Compare August 19, 2026 12:18
@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from 2aba493 to e9b221b Compare August 19, 2026 12:18
@EnriqueParodi
EnriqueParodi force-pushed the test/rest-flaky-default-config branch from 0e90241 to 36b6204 Compare August 19, 2026 12:41
@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from e9b221b to 8f01f06 Compare August 19, 2026 12:41
@EnriqueParodi
EnriqueParodi force-pushed the test/rest-flaky-default-config branch from 36b6204 to aa31bb4 Compare August 19, 2026 21:21
@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from 8f01f06 to 813b575 Compare August 19, 2026 21:21
pybind11 looks for Python through FindPythonLibs unless told otherwise, and
CMake 3.27 deprecated that module; pinning CMP0148 to OLD only delays the
break. PYBIND11_FINDPYTHON sends it to FindPython, and the hint keeps it on
the interpreter this project already found.
@EnriqueParodi
EnriqueParodi force-pushed the test/rest-flaky-default-config branch from aa31bb4 to e8d7c13 Compare August 20, 2026 11:26
@EnriqueParodi
EnriqueParodi force-pushed the fix/pybind11-python-discovery branch from 813b575 to 6f6ca05 Compare August 20, 2026 11:26
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