39
39
# ~~~
40
40
# cmake-format -i CMakeLists.txt
41
41
# ~~~
42
- # It should also be cmake-lint clean.
42
+ # It should also be checked with a linter via
43
+ # ~~~
44
+ # cmake-lint CMakeLists.txt
45
+ # ~~~
43
46
#
44
47
45
48
cmake_minimum_required (VERSION 3.24 )
46
49
project (executorch )
47
50
48
51
# MARK: - Start EXECUTORCH_H12025_BUILD_MIGRATION
49
- # --------------------------------------------------
50
52
51
53
include (${PROJECT_SOURCE_DIR} /tools/cmake/common/preset.cmake )
52
54
include (${PROJECT_SOURCE_DIR} /tools/cmake/Utils.cmake )
@@ -84,7 +86,6 @@ include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/default.cmake)
84
86
print_configured_options ()
85
87
86
88
# MARK: - End EXECUTORCH_H12025_BUILD_MIGRATION
87
- # ----------------------------------------------------
88
89
89
90
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
90
91
@@ -95,7 +96,8 @@ set(CMAKE_SKIP_BUILD_RPATH OFF)
95
96
# Don't use the install-rpath during the build phase
96
97
set (CMAKE_BUILD_WITH_INSTALL_RPATH ON )
97
98
# Automatically add all linked folders that are NOT in the build directory to
98
- # the rpath (per library?) TODO: Doesn't work for us right now because we are
99
+ # the rpath (per library?)
100
+ # TODO: Doesn't work for us right now because we are
99
101
# not installing .so's into the correct locations. For example we have
100
102
# libcustom_ops_aot_lib.so depending on _portable_lib.so, which was eventually
101
103
# put under <site-packages>/executorch/extension/pybindings/ but this rpath is
0 commit comments