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