File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -240,10 +240,6 @@ cmake_dependent_option(
240240 "NOT EXECUTORCH_BUILD_ARM_BAREMETAL" OFF
241241)
242242
243- if (EXECUTORCH_BUILD_PYBIND)
244- set (EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON )
245- set (EXECUTORCH_BUILD_DEVTOOLS ON )
246- endif ()
247243
248244if (EXECUTORCH_BUILD_EXTENSION_TRAINING)
249245 set (EXECUTORCH_BUILD_EXTENSION_TENSOR ON )
@@ -724,6 +720,14 @@ endif()
724720if (EXECUTORCH_BUILD_PYBIND)
725721 add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /third-party/pybind11)
726722
723+ if (NOT EXECUTORCH_BUILD_EXTENSION_DATA_LOADER)
724+ add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /extension/data_loader)
725+ endif ()
726+
727+ if (NOT EXECUTORCH_BUILD_DEVTOOLS)
728+ add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /devtools)
729+ endif ()
730+
727731 # find pytorch lib, to allow pybind to take at::Tensor as input/output
728732 find_package (Torch CONFIG REQUIRED)
729733 find_library (
You can’t perform that action at this time.
0 commit comments