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

Update CMakeLists to correctly find pybind11 alias targets #242

Open
wants to merge 1 commit into
base: master
from

Conversation

@nickrobison-usds
Copy link

nickrobison-usds commented Sep 9, 2020

When building xtensor-python and pybind11 as cmake submodule projects, the pybind aliased targets are not discovered correctly.

This PR adds an additional check to also look for the pybind11:headers aliased target and set the values accordingly.

Add an additional TARGET check in the root cmake file to correctly find
the pybind11 alias targets.
@tdegeus
Copy link
Member

tdegeus commented Sep 15, 2020

I wonder if this is not more an issue of pybind11? Why is the target not defined?

nickrobison-usds added a commit to nickrobison-usds/mobility-cpp that referenced this pull request Sep 15, 2020
Add the required submodules for python integration.

We're using our own branch of xtensor-python, while we wait for the [PR](xtensor-stack/xtensor-python#242) to be merged.
nickrobison-usds added a commit to nickrobison-usds/mobility-cpp that referenced this pull request Sep 15, 2020
Add the required submodules for python integration.

We're using our own branch of xtensor-python, while we wait for the [PR](xtensor-stack/xtensor-python#242) to be merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.