Skip to content

Commit 6662f79

Browse files
committed
unbreak weird apple failure
1 parent 57a98b3 commit 6662f79

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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

248244
if(EXECUTORCH_BUILD_EXTENSION_TRAINING)
249245
set(EXECUTORCH_BUILD_EXTENSION_TENSOR ON)
@@ -724,6 +720,14 @@ endif()
724720
if(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(

0 commit comments

Comments
 (0)