simbit18 commented on code in PR #17427:
URL: https://github.com/apache/nuttx/pull/17427#discussion_r2589044026
##########
CMakeLists.txt:
##########
@@ -426,6 +426,14 @@ if(CONFIG_ARCH_BOARD_COMMON)
"${NUTTX_DIR}/boards/${CONFIG_ARCH}/${CONFIG_ARCH_CHIP}/common")
endif()
+# Setup ccache ###############################################################
+
+if(CONFIG_CCACHE)
+ find_program(CCACHE_PROGRAM ccache REQUIRED)
+ message(STATUS "Using ccache: ${CCACHE_PROGRAM}")
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
+endif()
Review Comment:
if(CONFIG_CCACHE)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
message(STATUS " Using ccache: ${CCACHE_PROGRAM}")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
else()
message(STATUS " Could not find ccache, skipping!")
endif()
endif()
hi @sorenfriis Can we add a check?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]