-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[libavif] Fix usage requirements export #42250
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
CI still doesn't start @BillyONeal. |
Yeah, something is broken. Having difficulty trying to restore it due to the storm damage last night https://www.seattletimes.com/seattle-news/weather/bomb-cyclone-over-450000-people-without-power-in-western-washington/ |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I destroyed and recreated all the pools and that seems to have fixed it for now, macs will be slow until I wake them all back up since that is a manual process. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
:sigh: One more time |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
+ install(EXPORT ${PROJECT_NAME}-config DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} FILE ${PROJECT_NAME}-targets.cmake) | ||
+ if(NOT BUILD_SHARED_LIBS) | ||
+ target_include_directories(avif_static PUBLIC $<INSTALL_INTERFACE:include>) | ||
+ set(avif_static_link_libs yuv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stupid question: Why is this yuv
rather than yuv::yuv
like above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This port is taking separate paths for static vs. dynamic linkage.
yuv::yuv
is from libavif's find module, used to link the shared libavif lib. No transitive usage requirements.
This PR just adds dependencies to take effect downstream when linking the static lib. yuv
is vcpkg's unofficial target provided by find_dependency(libyuv CONFIG)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(It is very hard to merge the separate paths. The static lib is merged with custom commands instead using plain cmake.)
Amends #41569.
Fixes #42112.
Alternative to #42151.