diff --git a/CMakeLists.txt b/CMakeLists.txt index 66d0461a..eed3a896 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,12 @@ if (ENABLE_LTO) 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) add_subdirectory(src)