OrangesCcache¶
Provides a function to set up the ccache compiler cache.
Note
Inclusion of this module enables the C
and CXX
languages, if they haven’t already been enabled.
- oranges_enable_ccache¶
oranges_enable_ccache (<target> [OPTIONS <args...>])
Enables the ccache compiler cache for the specified <target>
.
Any specified OPTIONS
are passed to the ccache executable verbatim. If not specified,
the value of the CCACHE_OPTIONS
variable is used.
If the CCACHE_DISABLE
option is set to ON
, calling this function does nothing.
Cache variables¶
- CCACHE_PROGRAM¶
Path to the ccache executable used for oranges_enable_ccache()
.
- CCACHE_DISABLE¶
When ON
, ccache is disabled for the entire build and calling oranges_enable_ccache()
does nothing. The environment variable with this name, if set, initializes this variable;
otherwise, defaults to OFF
.
- CCACHE_OPTIONS¶
A space-separated list of command line flags to pass to ccache. Used for oranges_enable_ccache()
when custom options are not explicitly specified. The environment variable with this name, if set,
initializes this variable; otherwise, defaults to some sensible default options.
Environment variables¶
- CCACHE_DISABLE¶
Initializes the CCACHE_DISABLE
variable.
- CCACHE_OPTIONS¶
Initializes the CCACHE_OPTIONS
variable.