Skip to content

Commit 646cc1f

Browse files
committed
Drop support for Imath 2
Signed-off-by: Julius Künzel <[email protected]>
1 parent e5698ad commit 646cc1f

File tree

3 files changed

+5
-30
lines changed

3 files changed

+5
-30
lines changed

CMakeLists.txt

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,8 @@ 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()
242234
else()
243235
message(STATUS "Using src/deps/Imath by default")
@@ -247,17 +239,6 @@ endif()
247239
# set up the internally hosted dependencies
248240
add_subdirectory(src/deps)
249241

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-
261242
add_subdirectory(src/opentime)
262243
add_subdirectory(src/opentimelineio)
263244

@@ -272,4 +253,3 @@ endif()
272253
if(OTIO_CXX_EXAMPLES)
273254
add_subdirectory(examples)
274255
endif()
275-

src/opentimelineio/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,12 @@ add_library(opentimelineio ${OTIO_SHARED_OR_STATIC_LIB}
7878
add_library(OTIO::opentimelineio ALIAS opentimelineio)
7979

8080
target_include_directories(opentimelineio
81-
PRIVATE "${IMATH_INCLUDES}"
82-
"${PROJECT_SOURCE_DIR}/src"
81+
PRIVATE "${PROJECT_SOURCE_DIR}/src"
8382
"${PROJECT_SOURCE_DIR}/src/deps"
84-
"${PROJECT_SOURCE_DIR}/src/deps/rapidjson/include"
85-
"${IMATH_INCLUDES}")
83+
"${PROJECT_SOURCE_DIR}/src/deps/rapidjson/include")
8684

8785
target_link_libraries(opentimelineio
88-
PUBLIC opentime ${OTIO_IMATH_TARGETS})
86+
PUBLIC opentime Imath::Imath)
8987

9088
set_target_properties(opentimelineio PROPERTIES
9189
DEBUG_POSTFIX "${OTIO_DEBUG_POSTFIX}"

tests/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ foreach(test ${tests_opentimelineio})
2020
add_executable(${test} utils.h utils.cpp ${test}.cpp)
2121

2222
target_link_libraries(${test} opentimelineio)
23-
if (NOT "${IMATH_INCLUDES}" STREQUAL "")
24-
target_include_directories(${test} "${IMATH_INCLUDES}")
25-
endif()
2623
set_target_properties(${test} PROPERTIES FOLDER tests)
2724
add_test(NAME ${test}
2825
COMMAND ${test}

0 commit comments

Comments
 (0)