mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 13:10:07 +08:00
40ec948687
* Fix exported Imath dependency * Drop unused deps from patches and config * Handle DLL import in installed header * Fix non-required find_package(OpenColorIO) * Omit unrelocatable script * Installation cleanup * Update to 2.1.2 * Fix exported pc file * Update versions * Silence warning * Update versions * OpenImageIO features CI test * Consolidate patches * Revise OpenJPEG patching * Revise PNG patching * Revise libheif patching * Revise libsquish patching * Revise ffmpeg patching * Fix static ffmpeg linking * Fix webp usage * More dependency control * Misc cleanup * Update copyright, add usage * Move config to share/openimageio * Trim dependencies * Revise opencv dependency * Remove find modules which might clash with opencv * Use opencolorio config and target * Update openimageio to 2.3.17.0 * LINKSTATIC breaks CRT lib linkage * Catch Imath version conflicts. This is not a regression but the result of previous opencolorio changes. It will eventually be resolved by upgrading openexr. * Remove llvm from opencv CI test port [skip actions] * [libheif] Fix symbol export * [skip actions] * Update versions * Add baseline =pass entries. Co-authored-by: Billy O'Neal <bion@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 b50a923..cec6e43 100644
|
|
--- a/src/cmake/externalpackages.cmake
|
|
+++ b/src/cmake/externalpackages.cmake
|
|
@@ -168,6 +168,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
|