From 574f14ecc15f38ba75242f8600519193db1b064c Mon Sep 17 00:00:00 2001 From: DraVee Date: Wed, 8 Oct 2025 09:24:29 +0200 Subject: [PATCH] [cmake] if CCACHE_PATH is set, try to check for it --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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})