Added ccache support as shown in Issue #390

release/4.3a0
Frank Dellaert 2018-11-08 22:09:05 -05:00 committed by cbeall
parent 58ef0dceb6
commit 1468250a0d
1 changed files with 7 additions and 0 deletions

View File

@ -193,6 +193,13 @@ endif()
# Find Google perftools
find_package(GooglePerfTools)
###############################################################################
# Support ccache, if installed
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
###############################################################################
# Find MKL