CMAKE_FASTBUILD_CACHE_MODEΒΆ

Added in version 4.6.

Specifies how builds started by cmake --build use the FASTBuild cache, with the values of FASTBuild's FASTBUILD_CACHE_MODE environment variable:

r

Retrieve artifacts from the cache (FASTBuild's -cacheread).

w

Store artifacts in the cache (-cachewrite).

rw

Both (-cache).

If not set, cmake --build enables no caching itself, and FASTBuild uses the cache only as its command line, for example cmake --build <dir> -- -cache, or its FASTBUILD_CACHE_MODE environment variable says.

cmake --build reads this variable from the build tree's cache, so set it as a cache entry, for example with -D or in a preset's cacheVariables. Builds from the generated IDE projects use CMAKE_FASTBUILD_IDE_ARGS instead.