From 02e9335d9c7aeba99c070ee287055867ac0bf632 Mon Sep 17 00:00:00 2001 From: scivision Date: Tue, 31 Mar 2026 00:54:02 -0400 Subject: [PATCH] Help: Document that `cmake --preset` supports `-B` to override the build dir --- Help/manual/cmake.1.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index aea477e1ae..62b8074c6f 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -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[=] Lists the available presets of the specified ````. Valid values for