diff options
| author | Scott Mansell <phiren@gmail.com> | 2026-07-15 17:48:30 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-15 17:48:30 +1200 |
| commit | fd8391a85241d1b359d662342c5c66f8f4b96d10 (patch) | |
| tree | 4a1aca0913caba5049e4189035e8d363dd543588 /CMakeLists.txt | |
| parent | 566519d13553c054980b8eed390c1f26a1f866fa (diff) | |
| parent | 271a140715081f05989b11ab5e9bc754f87935ff (diff) | |
Merge pull request #14263 from JoshuaVandaele/ccache-toggle
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 48e37f83dc..0d5ebfa61a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,6 +97,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: @@ -194,8 +195,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}") |
