File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ announce_configured_options(PYTHON_EXECUTABLE)
75
75
announce_configured_options (CMAKE_CXX_COMPILER_ID )
76
76
announce_configured_options (CMAKE_TOOLCHAIN_FILE )
77
77
announce_configured_options (BUCK2 )
78
- announce_configured_options (BUILD_TESTING )
79
78
80
79
load_build_preset ()
81
80
include (${PROJECT_SOURCE_DIR} /tools/cmake/preset/default.cmake )
@@ -144,6 +143,11 @@ else()
144
143
set (CMAKE_CXX_FLAGS_RELEASE "-O2 ${CMAKE_CXX_FLAGS_RELEASE} " )
145
144
endif ()
146
145
146
+ if (EXECUTORCH_BUILD_TESTS )
147
+ set (EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON )
148
+ include (CTest )
149
+ endif ()
150
+
147
151
add_subdirectory (third-party )
148
152
149
153
if (EXECUTORCH_BUILD_EXTENSION_TRAINING )
@@ -255,11 +259,6 @@ if(EXECUTORCH_BUILD_PTHREADPOOL)
255
259
)
256
260
endif ()
257
261
258
- if (EXECUTORCH_BUILD_TESTS )
259
- set (EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON )
260
- include (CTest )
261
- endif ()
262
-
263
262
# TODO(dbort): Fix these warnings and remove this flag.
264
263
set (_common_compile_options -Wno-deprecated-declarations -fPIC )
265
264
You can’t perform that action at this time.
0 commit comments