File tree Expand file tree Collapse file tree 3 files changed +661
-2
lines changed
shim_et/xplat/executorch/build Expand file tree Collapse file tree 3 files changed +661
-2
lines changed Original file line number Diff line number Diff line change 50
50
cmake_minimum_required (VERSION 3.29 )
51
51
project (executorch )
52
52
53
+ set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
54
+
53
55
include (${PROJECT_SOURCE_DIR} /tools/cmake/common/preset.cmake )
56
+ include (${PROJECT_SOURCE_DIR} /tools/cmake/Codegen.cmake )
54
57
include (${PROJECT_SOURCE_DIR} /tools/cmake/Utils.cmake )
55
58
include (CMakeDependentOption )
56
59
include (ExternalProject )
@@ -123,8 +126,6 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
123
126
# Instead please use `find_package(executorch REQUIRED)` in the example
124
127
# directory and add a new executable in the example `CMakeLists.txt`.
125
128
126
- set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
127
-
128
129
if (NOT EXECUTORCH_ENABLE_LOGGING )
129
130
# Avoid pulling in the logging strings, which can be large. Note that this
130
131
# will set the compiler flag for all targets in this directory, and for all
@@ -320,6 +321,7 @@ if(NOT EXECUTORCH_SRCS_FILE)
320
321
message (STATUS "executorch: Generating source lists" )
321
322
set (EXECUTORCH_SRCS_FILE "${CMAKE_CURRENT_BINARY_DIR} /executorch_srcs.cmake" )
322
323
extract_sources (${EXECUTORCH_SRCS_FILE} )
324
+ executorch_validate_build_variables ()
323
325
endif ()
324
326
325
327
# This file defines the `_<target>__srcs` variables used below.
You can’t perform that action at this time.
0 commit comments