summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorFlorent Castelli <florent.castelli@gmail.com>2017-06-15 18:23:30 +0200
committerLéo Lam <leo@leolam.fr>2021-04-24 17:59:34 +0200
commit712b078a5bb361aa294bb4fb8ea4e022f07d746b (patch)
tree55136b97565979bc7da0640e771ee94a35d879fd /CMake
parent18e84361d925af09586b940b265f10e501e889d6 (diff)
cmake: Search for sccache too in CCache module
sccache is a ccache rewrite that supports GCC, Clang and MSVC.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/CCache.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/CMake/CCache.cmake b/CMake/CCache.cmake
index 9388b0a28f..775256cd3b 100644
--- a/CMake/CCache.cmake
+++ b/CMake/CCache.cmake
@@ -1,7 +1,6 @@
-find_program(CCACHE_BIN ccache)
+find_program(CCACHE_BIN NAMES ccache sccache)
if(CCACHE_BIN)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_BIN})
- set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_BIN})
# ccache uses -I when compiling without preprocessor, which makes clang complain.
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")