From 846bfb1b42b58a39924d2fd8a4f553fb5c973b58 Mon Sep 17 00:00:00 2001 From: Karthik Ramesh Iyer Date: Tue, 30 Mar 2021 04:00:32 +0530 Subject: [PATCH] Add pybind11 subdirectory only if building python bindings (#927) --- src/deps/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/deps/CMakeLists.txt b/src/deps/CMakeLists.txt index fc165c8a6..5e3cfd8aa 100644 --- a/src/deps/CMakeLists.txt +++ b/src/deps/CMakeLists.txt @@ -12,7 +12,9 @@ foreach(submodule IN LISTS DEPS_SUBMODULES) endif() endforeach() -add_subdirectory(pybind11) +if(OTIO_PYTHON_INSTALL) + add_subdirectory(pybind11) +endif() if(OTIO_DEPENDENCIES_INSTALL) install(FILES any/any.hpp