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 5050cmake_minimum_required (VERSION 3.29)
5151project (executorch)
5252
53+ set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
54+
5355include (${PROJECT_SOURCE_DIR} /tools/cmake/common/preset.cmake)
56+ include (${PROJECT_SOURCE_DIR} /tools/cmake/Codegen.cmake)
5457include (${PROJECT_SOURCE_DIR} /tools/cmake/Utils.cmake)
5558include (CMakeDependentOption)
5659include (ExternalProject)
@@ -123,8 +126,6 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
123126# Instead please use `find_package(executorch REQUIRED)` in the example
124127# directory and add a new executable in the example `CMakeLists.txt`.
125128
126- set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
127-
128129if (NOT EXECUTORCH_ENABLE_LOGGING)
129130 # Avoid pulling in the logging strings, which can be large. Note that this
130131 # will set the compiler flag for all targets in this directory, and for all
@@ -320,6 +321,7 @@ if(NOT EXECUTORCH_SRCS_FILE)
320321 message (STATUS "executorch: Generating source lists" )
321322 set (EXECUTORCH_SRCS_FILE "${CMAKE_CURRENT_BINARY_DIR} /executorch_srcs.cmake" )
322323 extract_sources(${EXECUTORCH_SRCS_FILE} )
324+ executorch_validate_build_variables()
323325endif ()
324326
325327# This file defines the `_<target>__srcs` variables used below.
You can’t perform that action at this time.
0 commit comments