[cmake] if CCACHE_PATH is set, try to check for it
All checks were successful
eden-license / license-header (pull_request) Successful in 22s
All checks were successful
eden-license / license-header (pull_request) Successful in 22s
This commit is contained in:
parent
954c17c18a
commit
276f91be4f
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ if(YUZU_ENABLE_LTO)
|
|||
endif()
|
||||
option(USE_CCACHE "Use ccache for compilation" OFF)
|
||||
set(CCACHE_PATH "ccache" CACHE STRING "Path to ccache binary")
|
||||
if(USE_CCACHE)
|
||||
find_program(CCACHE_BINARY ${CCACHE_PATH})
|
||||
if(USE_CCACHE OR CCACHE_BINARY)
|
||||
if(CCACHE_BINARY)
|
||||
message(STATUS "Found ccache at: ${CCACHE_BINARY}")
|
||||
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_BINARY})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue