Meta: Separate ccache setup into its own component

This commit is contained in:
Jan200101 2022-12-06 22:57:20 +01:00 committed by Andrew Kaster
commit 10d40af167
Notes: sideshowbarker 2024-07-17 04:10:16 +09:00
3 changed files with 11 additions and 10 deletions

View file

@ -0,0 +1,9 @@
#
# ccache setup
#
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
endif()