Skip to content

Commit dc4aaf2

Browse files
authored
Build extension_flat_tensor when tests are built (#8481)
Add flat tensor to test cmake
1 parent 643c381 commit dc4aaf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ cmake_dependent_option(
245245
)
246246

247247
if(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR)
248-
set(EXECUTORCH_BUILF_EXTENSION_DATA_LOADER ON)
248+
set(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON)
249249
endif()
250250

251251
if(EXECUTORCH_BUILD_EXTENSION_TRAINING)
@@ -348,6 +348,7 @@ if(EXECUTORCH_BUILD_PTHREADPOOL)
348348
endif()
349349

350350
if(EXECUTORCH_BUILD_TESTS)
351+
set(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON)
351352
include(CTest)
352353
endif()
353354

0 commit comments

Comments
 (0)