-
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
Improve pxr CMake Config support by using CMakeFindDependencyMacro
CMake module instead of raw find_package
#3205
base: dev
Are you sure you want to change the base?
Conversation
…CMake module instead of raw `find_package`
Filed as internal issue #USD-9932 |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
It looks like the Linux build went through but the CI was cancelled, any idea what went wrong ? |
@theblackunknown It looks like the build succeeded but there was some kind of hiccup on the Azure side of things. I requeued the job to double-check. |
Hi @sunyab what are my chances to integrate my change for the next release ? |
Maybe #3310 can be included in this? Currently unable to build f3d as it depends on usd which then depends on materialx. Fails at OpenGL since nothing includes it in the cmake. Manually adding |
Looking at your issue @parkerlreed, I think I know what is going on and this requires further improvements which are currently not in this PR. |
Description of Change(s)
This PR improves the
pxr
CMake Config supports by usingfind_dependency
fromCMakeFindDependencyMacro
CMake module instead of rawfind_package
.Doing so handling of
REQUIRED
is not needing anymore as it will be transively forwarded from thefind_pckage(pxr ...)
calls:find_package(pxr REQUIRED ...)
results in dependencies being required toofind_package(pxr ...)
results in dependencies being optional tooMore information on
CMakeFindDependencyMacro
CMake module documentation page.