diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openimageio/imath-version-guard.patch | |
Diffstat (limited to 'vcpkg/ports/openimageio/imath-version-guard.patch')
| -rw-r--r-- | vcpkg/ports/openimageio/imath-version-guard.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/openimageio/imath-version-guard.patch b/vcpkg/ports/openimageio/imath-version-guard.patch new file mode 100644 index 0000000..10af02e --- /dev/null +++ b/vcpkg/ports/openimageio/imath-version-guard.patch @@ -0,0 +1,16 @@ +diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake +index 816ba08..7fe6a14 100644 +--- a/src/cmake/externalpackages.cmake ++++ b/src/cmake/externalpackages.cmake +@@ -133,6 +133,11 @@ if (NOT OPENCOLORIO_INCLUDES) + get_target_property(OPENCOLORIO_INCLUDES OpenColorIO::OpenColorIO INTERFACE_INCLUDE_DIRECTORIES) + endif () + include_directories(BEFORE ${OPENCOLORIO_INCLUDES}) ++if(USE_OPENCOLORIO AND TARGET Imath::Imath AND OIIO_USING_IMATH STREQUAL "2") ++ message(FATAL_ERROR ++ "OpenColorIO and OpenEXR use incompatible versions of Imath. " ++ "You cannot use openimageio[opencolorio] for this configuration.") ++endif() + + set(OPENCV_INCLUDES "") + set(OPENCV_LIBRARIES opencv_core) |