mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
cmake: use find_package(OpenEXR) to support OpenEXR 3+
This commit is contained in:
@@ -241,6 +241,7 @@ if(WITH_OPENEXR)
|
||||
add_subdirectory("${OpenCV_SOURCE_DIR}/3rdparty/openexr")
|
||||
if(OPENEXR_VERSION) # check via TARGET doesn't work
|
||||
set(HAVE_OPENEXR YES)
|
||||
set(BUILD_OPENEXR ON)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user