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