5 # Find ccache executable. https://ccache.dev/manual/latest.html
10 # This module defines the following variables:
14 # ``CCACHE_EXECUTABLE``
18 include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
19 find_program(CCACHE_EXECUTABLE ccache)
20 mark_as_advanced(CCACHE_EXECUTABLE)
22 if(EXISTS "${CCACHE_EXECUTABLE}")
23 execute_process(COMMAND ${CCACHE_EXECUTABLE} --version OUTPUT_VARIABLE CCACHE_VERSION)
24 string(REGEX REPLACE "ccache version ([^\n ]+).*" "\\1" CCACHE_VERSION "${CCACHE_VERSION}")
27 find_package_handle_standard_args(CCache