From 18ae68a97ccbe80dd5c1d0ce724df1b2a8e6470b Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 28 Jan 2025 00:59:50 +0100 Subject: 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. --- Help/command/load_cache.rst | 5 +++++ Help/manual/cmake-commands.7.rst | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Help/command/load_cache.rst b/Help/command/load_cache.rst index 877c2bb..d0a5657 100644 --- a/Help/command/load_cache.rst +++ b/Help/command/load_cache.rst @@ -21,6 +21,8 @@ This command has two signatures. The recommended signature is: For each cache ````, a local variable is created using the specified ```` 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 ^^^^^^^^ diff --git a/Help/manual/cmake-commands.7.rst b/Help/manual/cmake-commands.7.rst index 26b41d8..6f1a947 100644 --- a/Help/manual/cmake-commands.7.rst +++ b/Help/manual/cmake-commands.7.rst @@ -51,6 +51,7 @@ These commands are always available. /command/include /command/include_guard /command/list + /command/load_cache /command/macro /command/mark_as_advanced /command/math @@ -105,7 +106,6 @@ These commands are available only in CMake projects. /command/install /command/link_directories /command/link_libraries - /command/load_cache /command/project /command/remove_definitions /command/set_source_files_properties -- cgit v0.12