-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix build of usd executables when PXR_PY_UNDEFINED_DYNAMIC_LOOKUP is enabled #3577
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
base: dev
Are you sure you want to change the base?
Conversation
Sorry, I need to look into that, I plan to do this in the following days. |
Filed as internal issue #USD-10819 ❗ Please make sure that a signed CLA has been submitted! (This is an automated message. See here for more information.) |
/AzurePipelines run |
/AzurePipelines run |
1 similar comment
/AzurePipelines run |
I submitted the signed CLA by email today. |
/AzurePipelines run |
The CLA was approved. |
/AzurePipelines run |
Description of Change(s)
Even if PXR_PY_UNDEFINED_DYNAMIC_LOOKUP is defined (to avoid that the usd python extensions links to the python library, to avoid problems with statically linked python interpreters) we want that executables that link usd_python to link with the Python library, as otherwise they would fail due to missing symbols, see #2371 and #2568.
This can be done by adding to INTERFACE_LINK_LIBRARIES the appropriate generator expression, that will evalute to empty when usd_python is linked to a library, but it will evaluate to Python3::Python when linked to an executable.
Link to proposal (if applicable)
Fixes Issue(s)
This needs to be verified by the specific persons that open the issues, but probably this will fix the following issues:
Checklist
I have created this PR based on the dev branch
I have followed the coding conventions
I have added unit tests that exercise this functionality (Reference:
testing guidelines)
I have verified that all unit tests pass with the proposed changes
I have submitted a signed Contributor License Agreement (Reference:
Contributor License Agreement instructions)