archrelease: copy trunk to community-any
[ArchLinux/community.git] / hugin / trunk / hugin-openexr3.patch
blob0a5c015655fbb3217b02ac2035ed31022240134d
1 diff -ru hugin-2020.0.0.orig/CMakeModules/FindOpenEXR.cmake hugin-2020.0.0/CMakeModules/FindOpenEXR.cmake
2 --- hugin-2020.0.0.orig/CMakeModules/FindOpenEXR.cmake 2021-04-24 13:32:14.405277312 +0200
3 +++ hugin-2020.0.0/CMakeModules/FindOpenEXR.cmake 2021-04-24 19:14:40.144215012 +0200
4 @@ -10,6 +10,12 @@
5 # Redistribution and use is allowed according to the terms of the BSD license.
6 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
8 +FIND_PACKAGE(OpenEXR CONFIG REQUIRED)
9 +IF (TARGET OpenEXR::OpenEXR)
10 + SET(OPENEXR_FOUND TRUE)
11 + SET(OPENEXR_INCLUDE_DIR OpenEXR::OpenEXR)
12 + SET(OPENEXR_LIBRARIES OpenEXR::OpenEXR)
13 +ENDIF()
15 if (OPENEXR_INCLUDE_DIR AND OPENEXR_LIBRARIES)
16 # in cache already
17 diff -ru hugin-2020.0.0.orig/CMakeModules/FindVIGRA.cmake hugin-2020.0.0/CMakeModules/FindVIGRA.cmake
18 --- hugin-2020.0.0.orig/CMakeModules/FindVIGRA.cmake 2021-04-24 13:32:14.405277312 +0200
19 +++ hugin-2020.0.0/CMakeModules/FindVIGRA.cmake 2021-04-24 18:54:50.461698528 +0200
20 @@ -74,7 +74,7 @@
21 OUTPUT_STRIP_TRAILING_WHITESPACE
23 STRING(TOLOWER "${OUTPUT_LDD_VIGRA}" OUTPUT_LDD_VIGRA_LOWER)
24 - IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libilmimf")
25 + IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libopenexr")
26 MESSAGE(FATAL_ERROR "Libvigraimpex found. But vigraimpex seems to compiled without OpenEXR support. OpenEXR support is required for Hugin.")
27 ENDIF()
28 ELSE()