From 10d40af16743df93de58e4d9fac51139b7e3130d Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Tue, 6 Dec 2022 22:57:20 +0100 Subject: Meta: Separate ccache setup into its own component --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index caa641ea78..b0a2201a4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,11 +41,7 @@ if(NOT COMMAND serenity_option) endif() include(serenity_options) -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() +include(setup_ccache) if (NOT HACKSTUDIO_BUILD) -- cgit v1.2.3