Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[cmake] if CCACHE is set but not found, make it fatal (#2885)

DraVeecf9f78636a71
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dda6979911..97a6386f02 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -231,7 +231,7 @@ if(USE_CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_BINARY})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_BINARY})
else()
- message(WARNING "USE_CCACHE enabled, but no executable found at: ${CCACHE_PATH}")
+ message(FATAL_ERROR "USE_CCACHE enabled, but no executable found at: ${CCACHE_PATH}")
endif()
endif()