ccache.cmake 315 字节
Newer Older
X
xiexionghang 已提交
1 2 3 4 5 6 7 8 9
# Use ccache if found ccache program

find_program(CCACHE_PATH ccache)

if(CCACHE_PATH)
    message(STATUS "Ccache is founded, use ccache to speed up compile.")
    set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_PATH})
    set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_PATH})
endif(CCACHE_PATH)