cmake: restore ccache use when present
Closes https://github.com/espressif/esp-idf/issues/3116
This commit is contained in:
parent
ef49c41e15
commit
459dd29444
1 changed files with 9 additions and 0 deletions
|
@ -83,6 +83,15 @@ macro(project name)
|
||||||
# Now the configuration is loaded, set the toolchain appropriately
|
# Now the configuration is loaded, set the toolchain appropriately
|
||||||
idf_set_toolchain()
|
idf_set_toolchain()
|
||||||
|
|
||||||
|
# Enable ccache if it's on the path
|
||||||
|
if(NOT CCACHE_DISABLE)
|
||||||
|
find_program(CCACHE_FOUND ccache)
|
||||||
|
if(CCACHE_FOUND)
|
||||||
|
message(STATUS "ccache will be used for faster builds")
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
__project(${name} C CXX ASM)
|
__project(${name} C CXX ASM)
|
||||||
|
|
||||||
set(IDF_BUILD_ARTIFACTS ON)
|
set(IDF_BUILD_ARTIFACTS ON)
|
||||||
|
|
Loading…
Reference in a new issue