mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
Meta: Separate ccache setup into its own component
This commit is contained in:
parent
0bd9a94bea
commit
10d40af167
3 changed files with 11 additions and 10 deletions
9
Meta/CMake/setup_ccache.cmake
Normal file
9
Meta/CMake/setup_ccache.cmake
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue