load_cache: Mention script mode support (-P)

When using the relevant load_cache(READ_WITH_PREFIX) signature, it also
works in script mode (cmake -P ...), unlike the 2nd obsolete signature.
This commit is contained in:
Peter Kokot
2025-01-28 00:59:50 +01:00
parent 59113292b2
commit 18ae68a97c
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -21,6 +21,8 @@ This command has two signatures. The recommended signature is:
For each cache ``<entry>``, a local variable is created using the specified
``<prefix>`` followed by the entry name.
This signature can be also used in :option:`cmake -P` script mode.
The following signature of this command is strongly discouraged, but it is
provided for backward compatibility:
@@ -42,6 +44,9 @@ provided for backward compatibility:
This option can be used to provide a list of internal cache entries to
include in addition to the non-internal cache entries.
This signature can be used only in CMake projects. Script mode is not
supported.
Examples
^^^^^^^^