Skip to content

Missing library dependencies when building static libs  #1698

@zachlewis

Description

@zachlewis

I'm having trouble building static OpenImageIO libs against static OpenColorIO builds.

CMake Error at /sw/dev/zlewis/packages/OpenColorIO/2.2.0.dev21/platform-linux/arch-x86_64/python-3.8/.shared-0/lib64/cmake/OpenColorIO/OpenColorIOTargets.cmake:61 (set_target_properties):
  The link interface of target "OpenColorIO::OpenColorIO" contains:

    expat::expat

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /sw/dev/zlewis/packages/OpenColorIO/2.2.0.dev21/platform-linux/arch-x86_64/python-3.8/.shared-0/lib64/cmake/OpenColorIO/OpenColorIOConfig.cmake:12 (include)
  src/cmake/modules/FindOpenColorIO.cmake:31 (find_package)
  src/cmake/checked_find_package.cmake:127 (find_package)
  src/cmake/externalpackages.cmake:177 (checked_find_package)
  CMakeLists.txt:151 (include)

@lgritz recently merged a PR that seems to address a very similar issue when building other libraries against OIIO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Build IssueIssues related to build or environment problems on any platform.To Closetemp label to help triage closable issues for review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions