Fix building without OTIO support

Added a new CMake flag that stops any OTIO related cpp files being
built.

Added extra #ifdefs to catch any OTIO related code in other cpp
files.
This commit is contained in:
Thomas Wilshaw
2020-10-15 18:59:06 +01:00
parent 33b479b393
commit 70455c1501
4 changed files with 13 additions and 3 deletions
+3 -1
View File
@@ -16,7 +16,9 @@
add_subdirectory(ffmpeg)
add_subdirectory(oiio)
add_subdirectory(otio)
if(OpenTimelineIO_FOUND)
add_subdirectory(otio)
endif()
set(OLIVE_SOURCES
${OLIVE_SOURCES}