FASTBuild — CMake 4.2.1 Documentation (original) (raw)

Added in version 4.2.

Generates a fbuild.bff file, which can be used to build the project withFASTBuild.

Usage

Specify the generator when invoking cmake(1):

cmake [] -G FASTBuild -B [-S ]

This writes a FASTBuild configuration file named fbuild.bff into<path-to-build>.

Note

This generator also produces IDE project files for Visual Studio and Xcode, which are placed under:

These IDE files can be generated by building xcode or solution targets and will build using FASTBuild as the backend.

Caching

To enable FASTBuild caching, set the cache path using theCMAKE_FASTBUILD_CACHE_PATH variable or theFASTBUILD_CACHE_PATH environment variable.

Then build with the -cache flag:

cmake --build -- -cache

Compiler Behavior Variables

The following variables control how compiler nodes are emitted in the generatedfbuild.bff. These settings may affect build determinism, debug info paths, include handling, and compiler argument formatting:

Configuration Variables

The following variables can be used to configure this generator:

Target Properties

The following target properties can be used to fine-tune behavior on a per-target basis:

Notes

Example

cmake [] -G FASTBuild -B -DCMAKE_BUILD_TYPE=Release cmake --build --target my_app

This generates fbuild.bff in <path-to-build> and uses FASTBuild to build the my_app target.

See Also