darktable-openexr3.patch 534 B

12345678910111213141516171819
  1. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
  2. index 6cbeab77d..21cf6b44a 100644
  3. --- a/src/CMakeLists.txt
  4. +++ b/src/CMakeLists.txt
  5. @@ -329,7 +329,12 @@ if(USE_CAMERA_SUPPORT)
  6. endif(USE_CAMERA_SUPPORT)
  7. if(USE_OPENEXR)
  8. - find_package(OpenEXR)
  9. + find_package(OpenEXR 3.0 CONFIG)
  10. + if(TARGET OpenEXR::OpenEXR)
  11. + set(OpenEXR_LIBRARIES OpenEXR::OpenEXR)
  12. + else()
  13. + find_package(OpenEXR)
  14. + endif()
  15. if(OpenEXR_FOUND)
  16. include_directories(SYSTEM ${OpenEXR_INCLUDE_DIRS})
  17. list(APPEND LIBS ${OpenEXR_LIBRARIES})