Skip to content

Commit

Permalink
Added support ccache for speedup recompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek committed Jan 17, 2024
1 parent 051dc07 commit dabf62e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions regamedll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ if (NOT DEBUG)
-Wl,-gc-sections -Wl,--version-script=\"${PROJECT_SOURCE_DIR}/../version_script.lds\"")
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 ()

set(PROJECT_SRC_DIR
"${PROJECT_SOURCE_DIR}"
"${PROJECT_SOURCE_DIR}/engine"
Expand Down

0 comments on commit dabf62e

Please sign in to comment.