-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG] find_package(pybind11) does not set up python header path properly #2632
Comments
Double checked, pybind v2.5.0 works so it may be related to the recent refactoring in 2.6.0's CMakeConfig template. |
I guess @henryiii knows this best. |
While I'm not sure if that's the root cause, an issue has been filed in onnx repo to ask for their engagement: onnx/onnx#3084 |
@henryiii Do you think |
I think there is an issue - The correct way to use pybind11 (or most any CMake library, really) is to use targets, and those are correctly set up - that includes all dependencies, including flags, min C++ versions, and include directories. |
This is odd, I distinctly remember the code setting |
Thanks @henryiii for the quick response! |
Issue description
Pybind11 2.6.0 (build from source by us)
We hit this issue when building onnx 1.7.0:
Pybind11 is introduced by the following cmake code:
https://github.com/onnx/onnx/blob/0c070abb0c40fec649f81a73a75b0098662ec486/CMakeLists.txt#L401-L413
The same script worked before and there's no recent release from onnx, so I think it should be a regression related to pybind11 repo.
The text was updated successfully, but these errors were encountered: