Skip to content

Commit

Permalink
Added support ccache for speedup compilation on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Herman Semenov <GermanAizek@yandex.ru>
  • Loading branch information
GermanAizek committed Jan 17, 2024
1 parent 995d0dd commit e2cd603
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2cd603

Please sign in to comment.