mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-28 19:58:34 -06:00
Merge topic 'patch-load-cache-export'
477737b7bf load_cache: Add note about export()
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10244
This commit is contained in:
@@ -47,6 +47,15 @@ provided for backward compatibility:
|
||||
This signature can be used only in CMake projects. Script mode is not
|
||||
supported.
|
||||
|
||||
.. note::
|
||||
|
||||
Instead of loading the outside project's cache file and manually accessing
|
||||
variables, a more robust and convenient approach is to use the
|
||||
:command:`export` command in the outside project, when available. This allows
|
||||
the project to provide its targets, configuration, or features in a
|
||||
structured and maintainable way, making integration simpler and less
|
||||
error-prone.
|
||||
|
||||
Examples
|
||||
^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user