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
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)
15 if (OPENEXR_INCLUDE_DIR AND OPENEXR_LIBRARIES)
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
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.")