From e2cd603970eb898b6b05e93c12e73b04de403612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= =?UTF-8?q?=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4=D9=B4?= Date: Wed, 17 Jan 2024 19:12:18 +0300 Subject: [PATCH] Added support ccache for speedup compilation on Linux Signed-off-by: Herman Semenov --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bde16bb813..f1a7ebbc06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,12 @@ if(APPLE) option(MakeApplicationBundles "Whether to build .app application bundles for engines built" ON) endif() +find_program(CCACHE_FOUND ccache) +if (CCACHE_FOUND) + set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) + set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros) +endif() + #============================================================================= # # Custom CMake Modules needed