Use CCache if it exists

This commit is contained in:
WaluigiWare64 2021-07-22 16:50:48 +01:00
parent 7aaee5ddb6
commit 9b5d5f673c
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,12 @@ if (ENABLE_LTO)
endif() endif()
endif() endif()
find_program(CCACHE "ccache")
if (CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
endif()
option(BUILD_QT_SDL "Build Qt/SDL frontend" ON) option(BUILD_QT_SDL "Build Qt/SDL frontend" ON)
add_subdirectory(src) add_subdirectory(src)