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 multi-context new Python linking mode #4401

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

mablanchard
Copy link
Contributor

Description

Allow CMake find_package() from multiple directories.

Fixes #4400

Suggested changelog entry:

* Allow calling ``find_package(pybind11 CONFIG)`` multiple times from separate
  directories in the same CMake project and properly link Python (new mode).

Allow CMake find_package() from multiple directories.

pybind#4400
Copy link
Collaborator

@Skylion007 Skylion007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but this is really @henryiii's domain.

Copy link
Collaborator

@henryiii henryiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. Have you verified it does work in this way?

@mablanchard
Copy link
Contributor Author

Seems fine. Have you verified it does work in this way?

It seems to be working for me!

@Skylion007 Skylion007 merged commit 89c3561 into pybind:master Dec 14, 2022
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Dec 14, 2022
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Dec 20, 2022
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.

[BUG]: CMake target missing Python in CONFIG mode
3 participants