[cmake] if CCACHE_PATH is set, try to check for it
All checks were successful
eden-license / license-header (pull_request) Successful in 22s

This commit is contained in:
Caio Oliveira 2025-10-08 09:24:29 +02:00 committed by crueter
parent 954c17c18a
commit 276f91be4f

View file

@ -210,8 +210,8 @@ if(YUZU_ENABLE_LTO)
endif() endif()
option(USE_CCACHE "Use ccache for compilation" OFF) option(USE_CCACHE "Use ccache for compilation" OFF)
set(CCACHE_PATH "ccache" CACHE STRING "Path to ccache binary") set(CCACHE_PATH "ccache" CACHE STRING "Path to ccache binary")
if(USE_CCACHE) find_program(CCACHE_BINARY ${CCACHE_PATH})
find_program(CCACHE_BINARY ${CCACHE_PATH}) if(USE_CCACHE OR CCACHE_BINARY)
if(CCACHE_BINARY) if(CCACHE_BINARY)
message(STATUS "Found ccache at: ${CCACHE_BINARY}") message(STATUS "Found ccache at: ${CCACHE_BINARY}")
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_BINARY}) set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_BINARY})