@@ -228,36 +228,21 @@ elseif(OTIO_FIND_IMATH)
228228 message (STATUS "Found Imath 3 at ${Imath_CONFIG} " )
229229 set (USE_DEPS_IMATH OFF )
230230 else ()
231- find_package (IlmBase QUIET )
232- if (IlmBase_FOUND)
233- message (STATUS "Imath 3 not found, found Imath 2 at ${IlmBase_CONFIG} " )
234- message (STATUS "You may need to point to the Imath headers by setting IMATH_INCLUDES" )
235- set (USE_DEPS_IMATH_OFF)
236- set (OTIO_RESOLVED_IMATH_LIBRARIES "${IlmBase_LIBRARIES" )
237- else ()
238- message (STATUS "Imath 3 and 2 were not found, using src/deps/Imath" )
239- set (USE_DEPS_IMATH ON )
240- endif ()
231+ message (STATUS "Imath 3 was not found, using src/deps/Imath" )
232+ set (USE_DEPS_IMATH ON )
241233 endif ()
242234else ()
243235 message (STATUS "Using src/deps/Imath by default" )
244236 set (USE_DEPS_IMATH ON )
245237endif ()
246238
239+ if (USE_DEPS_IMATH)
240+ include_directories ("${PROJECT_SOURCE_DIR} /src/deps/Imath/src" )
241+ endif ()
242+
247243# set up the internally hosted dependencies
248244add_subdirectory (src/deps)
249245
250- set (OTIO_IMATH_TARGETS
251- # For OpenEXR/Imath 3.x:
252- $<TARGET_NAME_IF_EXISTS:Imath::Imath>
253- $<TARGET_NAME_IF_EXISTS:Imath::Half>
254- # For OpenEXR >= 2.4/2.5 with reliable exported targets
255- $<TARGET_NAME_IF_EXISTS:IlmBase::Imath>
256- $<TARGET_NAME_IF_EXISTS:IlmBase::Half>
257- $<TARGET_NAME_IF_EXISTS:IlmBase::Iex>
258- # For OpenEXR <= 2.3:
259- ${ILMBASE_LIBRARIES} )
260-
261246add_subdirectory (src/opentime)
262247add_subdirectory (src/opentimelineio)
263248
@@ -272,4 +257,3 @@ endif()
272257if (OTIO_CXX_EXAMPLES)
273258 add_subdirectory (examples)
274259endif ()
275-
0 commit comments