From f0bbf7a6817d22b5f858f742930039ef55b43826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20K=C3=BCnzel?= Date: Tue, 1 Apr 2025 23:00:27 +0200 Subject: [PATCH] Don't fallback to Imath from src/deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the user explicitely requests to use find_package to use the system Imath it seems wrong to fallback to the delivered Imath Signed-off-by: Julius Künzel --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c6471849..fa4defd3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -224,13 +224,10 @@ if (NOT "${OTIO_IMATH_LIBS}" STREQUAL "") set(OTIO_RESOLVED_IMATH_LIBRARIES "${OTIO_IMATH_LIBS}") set(USE_DEPS_IMATH OFF) elseif(OTIO_FIND_IMATH) - find_package(Imath QUIET) + set(USE_DEPS_IMATH OFF) + find_package(Imath REQUIRED) if (Imath_FOUND) message(STATUS "Found Imath 3 at ${Imath_CONFIG}") - set(USE_DEPS_IMATH OFF) - else() - message(STATUS "Imath 3 was not found, using src/deps/Imath") - set(USE_DEPS_IMATH ON) endif() else() message(STATUS "Using src/deps/Imath by default")