From e3b45a798d67b1c48ab843dca16d62139b9de5a8 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Tue, 26 Mar 2024 13:12:17 -0700 Subject: [PATCH] build: FindOpenColorIO failed to properly set OpenColorIO_VERSION (#4196) ... in the OCIO 1.x case where we relied on our own Find module rather than an exported cmake config from OCIO itself. This is desired for uniformity of naming with the exported configs of the later versions. Signed-off-by: Larry Gritz --- src/cmake/modules/FindOpenColorIO.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmake/modules/FindOpenColorIO.cmake b/src/cmake/modules/FindOpenColorIO.cmake index 82e8faf9bd..a625c71434 100644 --- a/src/cmake/modules/FindOpenColorIO.cmake +++ b/src/cmake/modules/FindOpenColorIO.cmake @@ -91,6 +91,7 @@ find_package_handle_standard_args (OpenColorIO ) if (OpenColorIO_FOUND) + set (OpenColorIO_VERSION ${OPENCOLORIO_VERSION}) set (OPENCOLORIO_INCLUDES ${OPENCOLORIO_INCLUDE_DIR}) set (OPENCOLORIO_LIBRARIES ${OPENCOLORIO_LIBRARY}) set (OPENCOLORIO_DEFINITIONS "")