We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c47911f commit 1569621Copy full SHA for 1569621
CMakeLists.txt
@@ -426,6 +426,18 @@ if(CONFIG_ARCH_BOARD_COMMON)
426
"${NUTTX_DIR}/boards/${CONFIG_ARCH}/${CONFIG_ARCH_CHIP}/common")
427
endif()
428
429
+# Setup ccache ###############################################################
430
+
431
+if(CONFIG_CCACHE)
432
+ find_program(CCACHE_PROGRAM ccache)
433
+ if(CCACHE_PROGRAM)
434
+ message(STATUS "Using ccache: ${CCACHE_PROGRAM}")
435
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
436
+ else()
437
+ message(STATUS "Could not find ccache, skipping!")
438
+ endif()
439
+endif()
440
441
# Setup toolchain ############################################################
442
443
# This needs to happen before project() when binaries are searched for
0 commit comments