Skip to content

Commit d2833bd

Browse files
committed
Port Imath includes to Imath/*.h
As suggested by Imath devs, see AcademySoftwareFoundation/Imath#136 (comment) This is possible now that Imath 2 support was dropped Signed-off-by: Julius Künzel <[email protected]>
1 parent 646cc1f commit d2833bd

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

src/opentimelineio/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ add_library(OTIO::opentimelineio ALIAS opentimelineio)
8080
target_include_directories(opentimelineio
8181
PRIVATE "${PROJECT_SOURCE_DIR}/src"
8282
"${PROJECT_SOURCE_DIR}/src/deps"
83-
"${PROJECT_SOURCE_DIR}/src/deps/rapidjson/include")
83+
"${PROJECT_SOURCE_DIR}/src/deps/rapidjson/include"
84+
"${PROJECT_SOURCE_DIR}/src/deps/Imath/src")
8485

8586
target_link_libraries(opentimelineio
8687
PUBLIC opentime Imath::Imath)

src/opentimelineio/composable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "opentimelineio/serializableObjectWithMetadata.h"
77
#include "opentimelineio/version.h"
88

9-
#include <ImathBox.h>
9+
#include <Imath/ImathBox.h>
1010

1111
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
1212

src/opentimelineio/mediaReference.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "opentimelineio/serializableObjectWithMetadata.h"
77
#include "opentimelineio/version.h"
88

9-
#include <ImathBox.h>
9+
#include <Imath/ImathBox.h>
1010

1111
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
1212

src/opentimelineio/serializableObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "opentimelineio/typeRegistry.h"
1313
#include "opentimelineio/version.h"
1414

15-
#include "ImathBox.h"
15+
#include "Imath/ImathBox.h"
1616
#include "serialization.h"
1717

1818
#include <list>

src/py-opentimelineio/opentimelineio-bindings/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ target_include_directories(_otio
2222
PRIVATE pybind11/include
2323
PRIVATE "${PROJECT_SOURCE_DIR}/src"
2424
PRIVATE "${PROJECT_SOURCE_DIR}/src/deps"
25+
PRIVATE "${PROJECT_SOURCE_DIR}/src/deps/Imath/src"
2526
PRIVATE "${PROJECT_SOURCE_DIR}/src/deps/optional-lite/include"
2627
)
2728

src/py-opentimelineio/opentimelineio-bindings/otio_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "opentimelineio/typeRegistry.h"
1515
#include "opentimelineio/stackAlgorithm.h"
1616

17-
#include <ImathBox.h>
17+
#include <Imath/ImathBox.h>
1818

1919
namespace py = pybind11;
2020
using namespace pybind11::literals;

src/py-opentimelineio/opentimelineio-bindings/otio_imath.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
#include "otio_utils.h"
88

9-
#include "ImathBox.h"
10-
#include "ImathVec.h"
9+
#include "Imath/ImathBox.h"
10+
#include "Imath/ImathVec.h"
1111

1212
namespace py = pybind11;
1313

src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "otio_utils.h"
3333
#include "otio_anyDictionary.h"
3434

35-
#include "ImathBox.h"
35+
#include "Imath/ImathBox.h"
3636

3737
namespace py = pybind11;
3838
using namespace pybind11::literals;

src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "opentimelineio/safely_typed_any.h"
1212
#include "opentimelineio/stringUtils.h"
1313

14-
#include <ImathBox.h>
14+
#include <Imath/ImathBox.h>
1515

1616
#include <map>
1717
#include <cstring>

0 commit comments

Comments
 (0)