Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Add library dependencies in Config.cmake.in when building stat…
…ic (AcademySoftwareFoundation#3552) This fixes builds in projects that compile OpenImageIO as static libraries and don't themselves depend on the image libraries used by OpenImageIO such as PNG, JPEG or TIFF. When OpenImageIO is built as a static library its targets have e.g. PNG::PNG among INTERFACE_LINK_LIBRARIES. If the including project does not itself depend on PNG, the following error would be observed: Target "<...>" links to target "PNG::PNG" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
- Loading branch information