2020-11-11 23:21:35 -06:00
|
|
|
# buildcache wrapper
|
2022-10-10 07:40:47 -05:00
|
|
|
OPTION(CITRA_USE_CCACHE "Use buildcache for compilation" OFF)
|
|
|
|
IF(CITRA_USE_CCACHE)
|
2020-11-11 23:21:35 -06:00
|
|
|
FIND_PROGRAM(CCACHE buildcache)
|
|
|
|
IF (CCACHE)
|
|
|
|
MESSAGE(STATUS "Using buildcache found in PATH")
|
|
|
|
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
|
|
|
|
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE})
|
|
|
|
ELSE(CCACHE)
|
2022-10-10 07:40:47 -05:00
|
|
|
MESSAGE(WARNING "CITRA_USE_CCACHE enabled, but no buildcache executable found")
|
2020-11-11 23:21:35 -06:00
|
|
|
ENDIF(CCACHE)
|
2022-10-10 07:40:47 -05:00
|
|
|
ENDIF(CITRA_USE_CCACHE)
|