1option(USE_CCACHE "Use ccache to speed up compilation if it is installed" ON) 2if(USE_CCACHE) 3 find_program(CCACHE_PROGRAM ccache) 4 if(CCACHE_PROGRAM) 5 set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") 6 endif() 7endif() 8