diff --git a/CMakeLists.txt b/CMakeLists.txt index f436c0a183..42a95e6731 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) +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})