We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c09e91 commit 588fa40Copy full SHA for 588fa40
backends/apple/coreml/CMakeLists.txt
@@ -234,7 +234,9 @@ install(
234
235
# We only care about building the pybinding when building for macOS wheels.
236
if(EXECUTORCH_BUILD_COREML AND EXECUTORCH_BUILD_PYBIND)
237
- add_subdirectory(${EXECUTORCH_ROOT}/third-party/pybind11 ${CMAKE_CURRENT_BINARY_DIR}/pybind11)
+ if(NOT TARGET pybind11::pybind11)
238
+ add_subdirectory(${EXECUTORCH_ROOT}/third-party/pybind11 ${CMAKE_CURRENT_BINARY_DIR}/pybind11)
239
+ endif()
240
241
pybind11_add_module(executorchcoreml SHARED runtime/inmemoryfs/inmemory_filesystem_py.cpp)
242
0 commit comments