File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 48
48
cmake_minimum_required (VERSION 3.24)
49
49
project (executorch)
50
50
51
- # Enable ccache if available
52
- find_program (CCACHE_PROGRAM ccache)
53
- if (CCACHE_PROGRAM)
54
- set (CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM} " )
55
- set (CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM} " )
56
- message (STATUS "ccache found and enabled for faster builds" )
57
- else ()
58
- message (STATUS "ccache not found, builds will not be cached" )
59
- endif ()
60
-
61
51
# MARK: - Start EXECUTORCH_H12025_BUILD_MIGRATION
62
52
63
53
include (${PROJECT_SOURCE_DIR} /tools/cmake/common/preset.cmake)
@@ -96,6 +86,17 @@ announce_configured_options(CMAKE_TOOLCHAIN_FILE)
96
86
load_build_preset()
97
87
include (${PROJECT_SOURCE_DIR} /tools/cmake/preset/default.cmake)
98
88
89
+ # Enable ccache if available
90
+ find_program (CCACHE_PROGRAM ccache)
91
+ if (CCACHE_PROGRAM)
92
+ set (CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM} " )
93
+ set (CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM} " )
94
+ message (STATUS "ccache found and enabled for faster builds" )
95
+ else ()
96
+ message (STATUS "ccache not found, builds will not be cached" )
97
+ endif ()
98
+ announce_configured_options(CCACHE_PROGRAM)
99
+
99
100
# Print all the configs that were called with announce_configured_options.
100
101
print_configured_options()
101
102
You can’t perform that action at this time.
0 commit comments