diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c8ae562f6ad..a630f0ae63d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -610,6 +610,11 @@ if(WIN32) endif() +if(UNIX) + # See WITH_WINDOWS_SCCACHE for Windows. + option(WITH_COMPILER_CCACHE "Use ccache to improve rebuild times (Works with Ninja, Makefiles and Xcode)" OFF) +endif() + # The following only works with the Ninja generator in CMake >= 3.0. if("${CMAKE_GENERATOR}" MATCHES "Ninja") option(WITH_NINJA_POOL_JOBS |