Skip to content

Commit cd4cfc1

Browse files
committed
Separate CMake logic for pure C++ examples and C++/Python examples
1 parent 70dd47b commit cd4cfc1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ if(OTIO_PYTHON_INSTALL)
210210
add_subdirectory(src/py-opentimelineio)
211211
endif()
212212

213-
if(OTIO_CXX_EXAMPLES AND OTIO_PYTHON_INSTALL)
213+
if(OTIO_CXX_EXAMPLES)
214214
add_subdirectory(examples)
215215
endif()
216216

examples/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ include_directories(${PROJECT_SOURCE_DIR}/src
77

88
list(APPEND examples flatten_video_tracks)
99
list(APPEND examples summarize_timing)
10-
list(APPEND examples python_adapters_child_process)
11-
list(APPEND examples python_adapters_embed)
10+
if(OTIO_PYTHON_INSTALL)
11+
list(APPEND examples python_adapters_child_process)
12+
list(APPEND examples python_adapters_embed)
13+
endif()
1214
foreach(example ${examples})
1315
add_executable(${example} ${example}.cpp util.h util.cpp)
1416
target_link_libraries(${example} OTIO::opentimelineio ${PYTHON_LIBRARIES})

0 commit comments

Comments
 (0)