vcpkg/ports/opencolorio/use-find-openexr.patch
Xing Ji 17818aa503
[OpenColorIO] Fix OpenColorIO v2.0.1 can't be find_package (#19725)
* fix that opencolorio v2.0.1 can't be `find_package`, reference the master branch of opencolorio to generate `OpenColorIOTargets`

* run `vcpkg x-add-version --all`

* fix the `OpenColorIO` for linux

* vcpkg x-add-version --all

* patch for `OpenColorIOConfig.cmake` by https://github.com/AcademySoftwareFoundation/OpenColorIO/pull/1397

* vcpkg x-add-version --all
2021-08-26 10:10:12 -07:00

14 lines
485 B
Diff

diff --git a/share/cmake/modules/FindExtPackages.cmake b/share/cmake/modules/FindExtPackages.cmake
index 8d9bfdd7..cce2fde2 100644
--- a/share/cmake/modules/FindExtPackages.cmake
+++ b/share/cmake/modules/FindExtPackages.cmake
@@ -34,7 +34,7 @@ find_package(yaml-cpp 0.6.3 REQUIRED)
# Half (OpenEXR/IlmBase)
# https://github.com/openexr/openexr
-find_package(Half 2.4.0 REQUIRED)
+find_package(OpenEXR 2.4.0 CONFIG REQUIRED)
# pystring
# https://github.com/imageworks/pystring