Skip to content

[openimageio] OpenImageIO Cmake rules are broken and the package is unusable #21234

@HappySeaFox

Description

@HappySeaFox

Describe the bug

  1. When I install openimageio, vcpkg prints
    (1)
    find_package(Modules CONFIG REQUIRED)
    target_link_libraries(main PRIVATE OpenImageIO::OpenImageIO)

    (2)
    find_package(OpenImageIO CONFIG REQUIRED)
    target_link_libraries(main PRIVATE OpenImageIO::OpenImageIO OpenImageIO::OpenImageIO_Util)

(1) is too confusing as Modules package doesn't exist. If I use the second approach in a client application, I see

CMake Error at D:/projects/git.vcpkg/installed/x64-windows/share/ilmbase/IlmBaseConfig.cmake:11 (message):
  File or directory /include referenced by variable OpenImageIO_INCLUDE_DIR
  does not exist !
Call Stack (most recent call first):
  D:/projects/git.vcpkg/installed/x64-windows/share/OpenImageIO/OpenImageIOConfig.cmake:45 (set_and_check)
  D:/projects/git.vcpkg/installed/x64-windows/share/OpenImageIO/vcpkg-cmake-wrapper.cmake:4 (_find_package)
  D:/projects/git.vcpkg/scripts/buildsystems/vcpkg.cmake:742 (include)
  CMakeLists.txt:84 (find_package)

Environment

  • OS: Windows
  • Compiler: MSVC 2019 x64

To Reproduce

Expected behavior

Failure logs

Additional context

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions