MSVCCache.cmake 481 B

123456789101112
  1. # buildcache wrapper
  2. OPTION(USE_CCACHE "Use buildcache for compilation" OFF)
  3. IF(USE_CCACHE)
  4. FIND_PROGRAM(CCACHE buildcache)
  5. IF (CCACHE)
  6. MESSAGE(STATUS "Using buildcache found in PATH")
  7. SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
  8. SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE})
  9. ELSE(CCACHE)
  10. MESSAGE(WARNING "USE_CCACHE enabled, but no buildcache executable found")
  11. ENDIF(CCACHE)
  12. ENDIF(USE_CCACHE)