Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cmake): make library component optional #4805

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Aug 21, 2023

Description

This fixes a probably long standing bug where set(PYBIND11_FINDPYTHON ON) couldn't be used in manylinux. Fix #4802.

Suggested changelog entry:

* Don't require the libs component on CMake 3.18+ when using PYBIND11_FINDPYTHON (fixes manylinux builds).

devw4r added a commit to devw4r/namigator that referenced this pull request Sep 17, 2023
wjakob added a commit to wjakob/nanobind that referenced this pull request Oct 27, 2023
@wjakob
Copy link
Member

wjakob commented Oct 27, 2023

LGTM, nice catch!

@henryiii henryiii merged commit a18c10f into pybind:master Oct 27, 2023
85 checks passed
@henryiii henryiii deleted the henryiii/fix/cmakemodule branch October 27, 2023 15:02
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Oct 27, 2023
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Cannot find Python on manylinux with CMake>=3.27
3 participants