Add ccache support

This commit is contained in:
Berkus Decker 2017-11-22 04:25:21 +02:00
parent c6f94dd5f9
commit 87c4fe151b
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,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
##======================