diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-08 16:40:43 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2026-01-09 17:49:51 +0100 |
| commit | 271a140715081f05989b11ab5e9bc754f87935ff (patch) | |
| tree | 2bea178c43a09ceae62a2f9cc0b9db495c7f197c /CMakeLists.txt | |
| parent | fb2a46c4cfa2687cd0191c00efaa4ce9431ca639 (diff) | |
CCache: Set as opt-in by default
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e63c62c66..3bd7b75927 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,7 @@ option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence, show the current gam option(USE_MGBA "Enables GBA controllers emulation using libmgba" ON) option(ENABLE_AUTOUPDATE "Enables support for automatic updates" ON) option(USE_RETRO_ACHIEVEMENTS "Enables integration with retroachievements.org" ON) +option(ENABLE_CCACHE "Enables CCache compiler cache" OFF) # Maintainers: if you consider blanket disabling this for your users, please # consider the following points: @@ -207,8 +208,12 @@ if (WIN32) endif() endif() -# setup CCache -include(CCache) +if(ENABLE_CCACHE) + include(CCache) + if(NOT CCACHE_BIN) + message(WARNING "Ccache was enabled but not found. This build will not use Ccache.") + endif() +endif() # Architecture detection and arch specific settings message(STATUS "Detected architecture: ${CMAKE_SYSTEM_PROCESSOR}") |
