Skip to content
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

cmake: Add library dependencies in Config.cmake.in when building static libs #3552

Commits on Sep 13, 2022

  1. cmake: Add library dependencies in Config.cmake.in when building static

    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?
    p12tic committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    b7ced07 View commit details
    Browse the repository at this point in the history