Help: Document that cmake --preset supports -B to override the build dir

This commit is contained in:
scivision
2026-03-31 00:54:02 -04:00
committed by Brad King
parent c288ecddb2
commit 02e9335d9c

View File

@@ -707,6 +707,11 @@ Options
if the preset sets a variable called ``MYVAR`` to ``1``, but the user sets
it to ``2`` with a ``-D`` argument, the value ``2`` is preferred.
.. versionadded:: 3.21
The ``-B`` option may optionally be specified with a different binary
directory than the one specified by the ``binaryDir`` key of the
configure preset.
.. option:: --list-presets[=<type>]
Lists the available presets of the specified ``<type>``. Valid values for