--- CMakeLists.txt.orig	2023-03-01 19:24:13 UTC
+++ CMakeLists.txt
@@ -68,7 +68,7 @@ endif()
 # Support for ccache
 # ==================================================================================================
 find_program(CCACHE_PROGRAM ccache)
-if (CCACHE_PROGRAM)
+if (USE_CCACHE AND CCACHE_PROGRAM)
     if (WIN32)
         set(CMAKE_C_COMPILER_LAUNCHER   "${CCACHE_PROGRAM}")
         set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
