2020-11-12 05:21:35 +00:00
|
|
|
# buildcache wrapper
|
2022-10-10 13:40:47 +01:00
|
|
|
OPTION(CITRA_USE_CCACHE "Use buildcache for compilation" OFF)
|
|
|
|
IF(CITRA_USE_CCACHE)
|
2020-11-12 05:21:35 +00: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 13:40:47 +01:00
|
|
|
MESSAGE(WARNING "CITRA_USE_CCACHE enabled, but no buildcache executable found")
|
2020-11-12 05:21:35 +00:00
|
|
|
ENDIF(CCACHE)
|
2022-10-10 13:40:47 +01:00
|
|
|
ENDIF(CITRA_USE_CCACHE)
|