4848cmake_minimum_required (VERSION 3.24)
4949project (executorch)
5050
51- # MARK: - Start EXECUTORCH_H12025_BUILD_MIGRATION
52-
5351include (${PROJECT_SOURCE_DIR} /tools/cmake/common/preset.cmake)
5452include (${PROJECT_SOURCE_DIR} /tools/cmake/Utils.cmake)
5553include (CMakeDependentOption)
@@ -82,6 +80,7 @@ announce_configured_options(BUCK2)
8280
8381announce_configured_options(CMAKE_CXX_COMPILER_ID)
8482announce_configured_options(CMAKE_TOOLCHAIN_FILE)
83+ announce_configured_options(BUILD_TESTING)
8584
8685load_build_preset()
8786include (${PROJECT_SOURCE_DIR} /tools/cmake/preset/default.cmake)
@@ -97,11 +96,6 @@ else()
9796endif ()
9897announce_configured_options(CCACHE_PROGRAM)
9998
100- # Print all the configs that were called with announce_configured_options.
101- print_configured_options()
102-
103- # MARK: - End EXECUTORCH_H12025_BUILD_MIGRATION
104-
10599set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
106100
107101# Setup RPATH. See
@@ -112,11 +106,12 @@ set(CMAKE_SKIP_BUILD_RPATH OFF)
112106set (CMAKE_BUILD_WITH_INSTALL_RPATH ON )
113107# Automatically add all linked folders that are NOT in the build directory to
114108# the rpath (per library?)
115- # TODO: Doesn't work for us right now because we are
116- # not installing .so's into the correct locations. For example we have
117- # libcustom_ops_aot_lib.so depending on _portable_lib.so, which was eventually
118- # put under <site-packages>/executorch/extension/pybindings/ but this rpath is
119- # not automatically added because at build time it seems `portable_lib` is being
109+ #
110+ # TODO: Doesn't work for us right now because we are not installing .so's into
111+ # the correct locations. For example we have libcustom_ops_aot_lib.so depending
112+ # on _portable_lib.so, which was eventually put under
113+ # <site-packages>/executorch/extension/pybindings/ but this rpath is not
114+ # automatically added because at build time it seems `portable_lib` is being
120115# built under the same directory, so no extra rpath is being added. To properly
121116# fix this we need to install `portable_lib` into the correct path.
122117set (CMAKE_INSTALL_RPATH_USE_LINK_PATH ON )
@@ -321,8 +316,9 @@ if(EXECUTORCH_USE_CPP_CODE_COVERAGE)
321316 " -fprofile-instr-generate -fcoverage-mapping"
322317 )
323318 else ()
324- message (FATAL_ERROR
325- "Code coverage for compiler ${CMAKE_CXX_COMPILER_ID} is unsupported"
319+ message (
320+ FATAL_ERROR
321+ "Code coverage for compiler ${CMAKE_CXX_COMPILER_ID} is unsupported"
326322 )
327323 endif ()
328324endif ()
@@ -633,8 +629,8 @@ if(EXECUTORCH_BUILD_PYBIND)
633629 endif ()
634630
635631 if (EXECUTORCH_BUILD_XNNPACK)
636- # need to explicitly specify XNNPACK and xnnpack-microkernels-prod here otherwise
637- # uses XNNPACK and microkernel-prod symbols from libtorch_cpu
632+ # need to explicitly specify XNNPACK and xnnpack-microkernels-prod here
633+ # otherwise uses XNNPACK and microkernel-prod symbols from libtorch_cpu
638634 list (APPEND _dep_libs xnnpack_backend XNNPACK xnnpack-microkernels-prod)
639635 endif ()
640636
@@ -752,3 +748,6 @@ if(EXECUTORCH_BUILD_ANDROID_JNI)
752748endif ()
753749
754750include (Test .cmake)
751+
752+ # Print all the configs that were called with announce_configured_options.
753+ print_configured_options()
0 commit comments