2022-07-29 13:19:42 +08:00
|
|
|
diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake
|
2022-12-14 11:15:34 +08:00
|
|
|
index 4d7e11c..0f15ba9 100644
|
2022-07-29 13:19:42 +08:00
|
|
|
--- a/src/cmake/externalpackages.cmake
|
|
|
|
+++ b/src/cmake/externalpackages.cmake
|
2022-12-14 11:15:34 +08:00
|
|
|
@@ -184,6 +184,11 @@ set(OPENCOLORIO_FOUND "${OpenColorIO_FOUND}")
|
|
|
|
if (NOT OpenColorIO_FOUND)
|
|
|
|
set (OpenColorIO_FOUND 0)
|
2022-07-29 13:19:42 +08:00
|
|
|
endif ()
|
|
|
|
+if(USE_OPENCOLORIO AND TARGET Imath::Imath AND OIIO_USING_IMATH STREQUAL "2")
|
|
|
|
+ message(FATAL_ERROR
|
|
|
|
+ "OpenColorIO and OpenEXR use incompatible versions of Imath. "
|
|
|
|
+ "You cannot use openimageio[opencolorio] for this configuration.")
|
|
|
|
+endif()
|
|
|
|
set(OPENCV_INCLUDES "")
|
|
|
|
set(OPENCV_LIBRARIES opencv_core)
|
|
|
|
checked_find_package (OpenCV CONFIG
|