This commit is contained in:
S David 2024-06-20 18:09:38 -04:00 committed by GitHub
commit 626be75e73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1001,9 +1001,9 @@ if (LLAMA_LTO)
endif() endif()
if (LLAMA_CCACHE) if (LLAMA_CCACHE)
find_program(LLAMA_CCACHE_FOUND ccache) find_program(LLAMA_CCACHE_PATH ccache)
if (LLAMA_CCACHE_FOUND) if (LLAMA_CCACHE_PATH)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${LLAMA_CCACHE_PATH})
set(ENV{CCACHE_SLOPPINESS} time_macros) set(ENV{CCACHE_SLOPPINESS} time_macros)
message(STATUS "ccache found, compilation results will be cached. Disable with LLAMA_CCACHE=OFF.") message(STATUS "ccache found, compilation results will be cached. Disable with LLAMA_CCACHE=OFF.")
else() else()