diff options
Diffstat (limited to 'project/cmake/modules/FindCCache.cmake')
| -rw-r--r-- | project/cmake/modules/FindCCache.cmake | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/project/cmake/modules/FindCCache.cmake b/project/cmake/modules/FindCCache.cmake deleted file mode 100644 index a7fd29f..0000000 --- a/project/cmake/modules/FindCCache.cmake +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | #.rst: | ||
| 2 | # FindCCache | ||
| 3 | # ---------- | ||
| 4 | # Finds ccache and sets it up as compiler wrapper. | ||
| 5 | # This should ideally be called before the call to project(). | ||
| 6 | # | ||
| 7 | # See: https://crascit.com/2016/04/09/using-ccache-with-cmake/ | ||
| 8 | |||
| 9 | find_program(CCACHE_PROGRAM ccache) | ||
| 10 | |||
| 11 | include(FindPackageHandleStandardArgs) | ||
| 12 | find_package_handle_standard_args(CCACHE REQUIRED_VARS CCACHE_PROGRAM) | ||
| 13 | |||
| 14 | if(CCACHE_FOUND) | ||
| 15 | # Supports Unix Makefiles and Ninja | ||
| 16 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") | ||
| 17 | set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CCACHE_PROGRAM}") | ||
| 18 | endif() | ||
