You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
383 B
9 lines
383 B
# Include this file in your CMake project with either -C
|
|
# UseCcacheIfExists.cmake or with the TriBITS option -D
|
|
# <Project>_CONFIGURE_OPTIONS_FILE=UseCcacheIfExists.cmake.
|
|
|
|
find_program(CCACHE_EXEC ccache)
|
|
if (CCACHE_EXEC)
|
|
message("-- NOTE: ccache program exists so using it for RULE_LAUNCH_COMPILE!")
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_EXEC}")
|
|
endif()
|
|
|