Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions src/cmake/Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,29 @@ if (NOT @fmt_LOCAL_BUILD@ AND NOT @OIIO_INTERNALIZE_FMT@)
find_dependency(fmt)
endif ()

find_dependency(OpenColorIO)
find_dependency(OpenEXR)
if (@OIIO_TBB@)
find_dependency(TBB)
endif ()
if (@JPEG_FOUND@)
find_dependency(JPEG)
endif()
if (@WebP_FOUND@)
find_dependency(WebP)
endif()

if (NOT @BUILD_SHARED_LIBS@)
# This is required in static library builds, as e.g. PNG::PNG appears among
# INTERFACE_LINK_LIBRARIES. If the project does not know about PNG target, it will cause
# configuration error about unknown targets being linked in.
find_dependency(TIFF)
find_dependency(OpenColorIO)
if (@JPEG_FOUND@)
find_dependency(JPEG)
endif()
if (@PNG_FOUND@)
find_dependency(PNG)
endif()
if (@DCMTK_FOUND@)
find_dependency(DCMTK)
endif()
# The following have the same problem except that INTERFACE_LINK_LIBRARIES use
# TARGET_NAME_IF_EXISTS, so the error only happens on link time.
if (@OIIO_TBB@)
find_dependency(TBB)
endif ()
endif ()

# Compute the installation prefix relative to this file. Note that cmake files are installed
Expand Down
Loading