mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-25 20:33:04 +00:00
e24e2a8f8b
* ccache: rename option as not to conflict with submodules * MinGWCross: fix alignment
13 lines
505 B
CMake
Executable file
13 lines
505 B
CMake
Executable file
# buildcache wrapper
|
|
OPTION(CITRA_USE_CCACHE "Use buildcache for compilation" OFF)
|
|
IF(CITRA_USE_CCACHE)
|
|
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)
|
|
MESSAGE(WARNING "CITRA_USE_CCACHE enabled, but no buildcache executable found")
|
|
ENDIF(CCACHE)
|
|
ENDIF(CITRA_USE_CCACHE)
|