-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pxrTargets.cmake contains absolute build paths #1025
Comments
Filed as internal issue #USD-5682 |
Just hit this too 😄 definitely limits the portability of It seems like the absolute paths are due to the usage of On a local build - attempting to privatize |
Had that issue very recently with MaterialX. The solution was annoyingly simple once I finally found it. All |
@moddyz Got the same issue when building USD with MaterialX. Any downstream application that links with the
The MaterialX libraries should have been declared PRIVATE instead. |
this still seems to be an issue. A simple external fix is to run a string replace on pxrTargets.cmake to replace the absolute path with ${_IMPORT_PREFIX}. I'm not sure how to fix this in USD itself, other than perhaps JG's suggestion above. |
This still seems to be an issue, but I just wanted to leave by this workaround example from the Adobe USD-Fileformat-plugins repository here, which is using github actions to build USD. |
Description of Issue
After
make install
USD,cmake/pxrTargets.cmake
unexpectedly contains absolute paths. In an consuming cmake script,find_package(pxr CONFIG ...)
fails with:"/xxx/boost-xxx/include" is an absolute path to the boost include directory on our build server which obviously does not exist anymore when consuming USD in a downstream build system.
Steps to Reproduce
ninja install
find_package
System Information (OS, Hardware)
CentOS 7.6
Package Versions
USD 19.11
The text was updated successfully, but these errors were encountered: