cmake/Help/command/load_cache.rst

27 lines
1001 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
load_cache
----------
Load in the values from another project's CMake cache.
2019-11-11 23:01:05 +01:00
.. code-block:: cmake
2014-08-03 19:52:23 +02:00
2020-02-01 23:06:01 +01:00
load_cache(pathToBuildDirectory READ_WITH_PREFIX prefix entry1...)
2014-08-03 19:52:23 +02:00
2019-11-11 23:01:05 +01:00
Reads the cache and store the requested entries in variables with their
2014-08-03 19:52:23 +02:00
name prefixed with the given prefix. This only reads the values, and
does not create entries in the local project's cache.
2019-11-11 23:01:05 +01:00
.. code-block:: cmake
2014-08-03 19:52:23 +02:00
2020-02-01 23:06:01 +01:00
load_cache(pathToBuildDirectory [EXCLUDE entry1...]
2014-08-03 19:52:23 +02:00
[INCLUDE_INTERNALS entry1...])
2019-11-11 23:01:05 +01:00
Loads in the values from another cache and store them in the local
2014-08-03 19:52:23 +02:00
project's cache as internal entries. This is useful for a project
2015-11-17 17:22:37 +01:00
that depends on another project built in a different tree. ``EXCLUDE``
2014-08-03 19:52:23 +02:00
option can be used to provide a list of entries to be excluded.
2015-11-17 17:22:37 +01:00
``INCLUDE_INTERNALS`` can be used to provide a list of internal entries to
2014-08-03 19:52:23 +02:00
be included. Normally, no internal entries are brought in. Use of
this form of the command is strongly discouraged, but it is provided
for backward compatibility.