Skip to content

Commit f0bbf7a

Browse files
committed
Don't fallback to Imath from src/deps
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 <[email protected]>
1 parent be777fe commit f0bbf7a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,10 @@ if (NOT "${OTIO_IMATH_LIBS}" STREQUAL "")
224224
set(OTIO_RESOLVED_IMATH_LIBRARIES "${OTIO_IMATH_LIBS}")
225225
set(USE_DEPS_IMATH OFF)
226226
elseif(OTIO_FIND_IMATH)
227-
find_package(Imath QUIET)
227+
set(USE_DEPS_IMATH OFF)
228+
find_package(Imath REQUIRED)
228229
if (Imath_FOUND)
229230
message(STATUS "Found Imath 3 at ${Imath_CONFIG}")
230-
set(USE_DEPS_IMATH OFF)
231-
else()
232-
message(STATUS "Imath 3 was not found, using src/deps/Imath")
233-
set(USE_DEPS_IMATH ON)
234231
endif()
235232
else()
236233
message(STATUS "Using src/deps/Imath by default")

0 commit comments

Comments
 (0)