Help: Add note to avoid trailing backslashes in paths passed via cmake -D

Closes: #28089
This commit is contained in:
Brad King
2026-09-14 13:51:52 -04:00
parent f5efe7a6b5
commit beec3faeee
+6
View File
@@ -74,6 +74,12 @@
precedence regardless of order because of the nature of non-``FORCE``
``set(... CACHE ...)`` calls.
.. note::
When passing a :ref:`semicolon-separated list <CMake Language Lists>`
of paths on Windows, avoid paths with a trailing ``\``, as it may
escape the following ``;`` during list expansion.
.. option:: -U <globbing_expr>
Remove matching entries from CMake ``CACHE``.