[nostalgia] Add support for ccache

This commit is contained in:
Gary Talent 2020-03-11 00:21:46 -05:00
parent 6ada347ec4
commit 48decc83f6

View File

@ -37,6 +37,11 @@ if(NOT OX_BARE_METAL)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDEBUG)
else()