mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
17851654c9
* update openimageio * update version * update openimageio * update version * update openimageio * update version * update format * update version * update format * update version * update openimageio * update version * format * version * update openimageio * update version * Add vcpkg_minimum_required * update version Co-authored-by: Monica <v-liumonica@microsoft.com>
17 lines
683 B
Diff
17 lines
683 B
Diff
diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake
|
|
index 4d7e11c..0f15ba9 100644
|
|
--- a/src/cmake/externalpackages.cmake
|
|
+++ b/src/cmake/externalpackages.cmake
|
|
@@ -184,6 +184,11 @@ set(OPENCOLORIO_FOUND "${OpenColorIO_FOUND}")
|
|
if (NOT OpenColorIO_FOUND)
|
|
set (OpenColorIO_FOUND 0)
|
|
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
|