hugin-openexr3.patch 1.4 KB

1234567891011121314151617181920212223242526272829
  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.
  7. +FIND_PACKAGE(OpenEXR CONFIG REQUIRED)
  8. +IF (TARGET OpenEXR::OpenEXR)
  9. + SET(OPENEXR_FOUND TRUE)
  10. + SET(OPENEXR_INCLUDE_DIR OpenEXR::OpenEXR)
  11. + SET(OPENEXR_LIBRARIES OpenEXR::OpenEXR)
  12. +ENDIF()
  13. if (OPENEXR_INCLUDE_DIR AND OPENEXR_LIBRARIES)
  14. # in cache already
  15. diff -ru hugin-2020.0.0.orig/CMakeModules/FindVIGRA.cmake hugin-2020.0.0/CMakeModules/FindVIGRA.cmake
  16. --- hugin-2020.0.0.orig/CMakeModules/FindVIGRA.cmake 2021-04-24 13:32:14.405277312 +0200
  17. +++ hugin-2020.0.0/CMakeModules/FindVIGRA.cmake 2021-04-24 18:54:50.461698528 +0200
  18. @@ -74,7 +74,7 @@
  19. OUTPUT_STRIP_TRAILING_WHITESPACE
  20. )
  21. STRING(TOLOWER "${OUTPUT_LDD_VIGRA}" OUTPUT_LDD_VIGRA_LOWER)
  22. - IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libilmimf")
  23. + IF(NOT "${OUTPUT_LDD_VIGRA_LOWER}" MATCHES "libopenexr")
  24. MESSAGE(FATAL_ERROR "Libvigraimpex found. But vigraimpex seems to compiled without OpenEXR support. OpenEXR support is required for Hugin.")
  25. ENDIF()
  26. ELSE()