feat: enable sccache

This commit is contained in:
Michael Mandl 2023-10-20 10:58:31 +02:00
parent 90f78aa9ea
commit 584d22dece
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
3 changed files with 8 additions and 0 deletions

6
cmake/sccache.cmake Normal file
View file

@ -0,0 +1,6 @@
find_program(SCCACHE_FOUND sccache)
if(SCCACHE_FOUND)
set(CMAKE_C_COMPILER_LAUNCHER sccache)
set(CMAKE_CXX_COMPILER_LAUNCHER sccache)
endif()