diff options
Diffstat (limited to 'vcpkg/ports/opencv2/0007-fix-openexr.patch')
| -rw-r--r-- | vcpkg/ports/opencv2/0007-fix-openexr.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv2/0007-fix-openexr.patch b/vcpkg/ports/opencv2/0007-fix-openexr.patch new file mode 100644 index 0000000..533ce2d --- /dev/null +++ b/vcpkg/ports/opencv2/0007-fix-openexr.patch @@ -0,0 +1,26 @@ +--- a/cmake/OpenCVFindLibsGrfmt.cmake ++++ b/cmake/OpenCVFindLibsGrfmt.cmake +@@ -151,7 +151,12 @@ if(WITH_OPENEXR) + if(BUILD_OPENEXR) + ocv_clear_vars(OPENEXR_FOUND) + else() +- include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindOpenEXR.cmake") ++ find_package(Imath CONFIG REQUIRED) ++ find_package(OpenEXR CONFIG REQUIRED) ++ set(OPENEXR_LIBRARIES Imath::Imath OpenEXR::OpenEXR) ++ set(OPENEXR_INCLUDE_PATHS "") ++ set(OPENEXR_VERSION "${OpenEXR_VERSION}") ++ set(OPENEXR_FOUND 1) + endif() + + if(NOT OPENEXR_FOUND) +--- a/modules/highgui/src/grfmt_exr.cpp ++++ b/modules/highgui/src/grfmt_exr.cpp +@@ -57,6 +57,7 @@ + #include <ImfOutputFile.h> + #include <ImfChannelList.h> + #include <ImfStandardAttributes.h> ++#include <ImfFrameBuffer.h> + #include <half.h> + #include "grfmt_exr.hpp" + |