This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-12 05:21:35 +00:00
|
|
|
# buildcache wrapper
|
2022-10-10 12:40:47 +00: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 12:40:47 +00: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 12:40:47 +00:00
|
|
|
ENDIF(CITRA_USE_CCACHE)
|