diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 0bb755807..e1e298cf1 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -9,6 +9,13 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux") endif() endif() +find_program(CCACHE ccache) +if (CCACHE) + message(STATUS "Enabling ccache") + set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE}) + set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE}) +endif() + ##====================== ## Codegen Tools ##======================