aboutsummaryrefslogtreecommitdiff
path: root/graphics/krita/files/patch-cmake_modules_FindOpenEXR.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/krita/files/patch-cmake_modules_FindOpenEXR.cmake')
-rw-r--r--graphics/krita/files/patch-cmake_modules_FindOpenEXR.cmake33
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/krita/files/patch-cmake_modules_FindOpenEXR.cmake b/graphics/krita/files/patch-cmake_modules_FindOpenEXR.cmake
new file mode 100644
index 000000000000..24d095385c2e
--- /dev/null
+++ b/graphics/krita/files/patch-cmake_modules_FindOpenEXR.cmake
@@ -0,0 +1,33 @@
+--- cmake/modules/FindOpenEXR.cmake.orig 2020-10-28 11:42:28 UTC
++++ cmake/modules/FindOpenEXR.cmake
+@@ -23,7 +23,7 @@
+ #
+
+ find_path(OPENEXR_INCLUDE_DIR
+- OpenEXR/half.h
++ OpenEXR/ImfHeader.h
+ HINTS
+ "${OPENEXR_LOCATION}"
+ "$ENV{OPENEXR_LOCATION}"
+@@ -57,11 +57,10 @@ if(OPENEXR_INCLUDE_DIR)
+ endif()
+
+ foreach(OPENEXR_LIB
+- Half
+ Iex
+- Imath
+- IlmImf
++ OpenEXR
+ IlmThread
++ Imath
+ )
+
+ # OpenEXR libraries may be suffixed with the version number, so we search
+@@ -87,6 +86,7 @@ endforeach(OPENEXR_LIB)
+ # So #include <half.h> works
+ list(APPEND OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR})
+ list(APPEND OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR}/OpenEXR)
++list(APPEND OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR}/Imath)
+
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(OpenEXR