mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
33 lines
944 B
ReStructuredText
33 lines
944 B
ReStructuredText
CMAKE_FASTBUILD_ENV_OVERRIDES
|
|
-----------------------------
|
|
|
|
.. versionadded:: 4.2
|
|
|
|
Allows overriding environment variables in the captured environment written to
|
|
``fbuild.bff``.
|
|
|
|
Specify a CMake-style list of key=value pairs. These values will override the
|
|
corresponding variables in the environment block that FASTBuild uses during
|
|
execution of tools (e.g., compilers, linkers, resource compilers, etc.).
|
|
|
|
This is especially useful for ensuring consistent behavior when tools depend
|
|
on environment variables (e.g., overriding ``PATH`` to control tool resolution
|
|
for ``rc.exe`` or ``mt.exe``).
|
|
|
|
Example:
|
|
|
|
.. code-block:: cmake
|
|
|
|
set(CMAKE_FASTBUILD_ENV_OVERRIDES
|
|
"PATH=C:/MyTools/bin"
|
|
"TMP=C:/temp"
|
|
"MY_CUSTOM_VAR=some_value"
|
|
)
|
|
|
|
.. note::
|
|
|
|
This only affects the environment seen by FASTBuild-generated rules.
|
|
It does **not** modify the environment in which CMake itself runs.
|
|
|
|
Defaults to empty (no overrides).
|