|
1 | 1 | # Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
2 | 2 | # file LICENSE.rst or https://cmake.org/licensing for details. |
3 | | -# |
4 | | -# Vendored by Nabla Asset Manifests from CMake 4.2 `ExternalData.cmake`. |
5 | | -# NAM patch scope is intentionally narrow: |
6 | | -# - on Windows prefer hardlinks, then symlinks, then copies when exposing |
7 | | -# objects from the content-addressed store |
8 | 3 |
|
9 | 4 | #[=======================================================================[.rst: |
10 | 5 | ExternalData |
@@ -184,12 +179,16 @@ calling any of the functions provided by this module. |
184 | 179 | host. The default order is ``hardlink -> symlink -> copy`` on Windows and |
185 | 180 | ``symlink -> hardlink -> copy`` elsewhere. |
186 | 181 |
|
| 182 | + When ``ExternalData_NO_SYMLINKS`` is set, the ``symlink`` mode is removed |
| 183 | + from automatic selection and cannot be requested explicitly. |
| 184 | +
|
187 | 185 | .. variable:: ExternalData_STATE_ROOT |
188 | 186 |
|
189 | 187 | The ``ExternalData_STATE_ROOT`` variable may be set to place module-managed |
190 | 188 | metadata outside ``ExternalData_BINARY_ROOT``. When set, ``ExternalData`` |
191 | 189 | stores its hash records and build driver stamps under this directory while |
192 | 190 | still materializing real data files under ``ExternalData_BINARY_ROOT``. |
| 191 | + By default, these files continue to be placed next to the materialized data. |
193 | 192 |
|
194 | 193 | .. variable:: ExternalData_OBJECT_STORES |
195 | 194 |
|
@@ -576,7 +575,8 @@ function(ExternalData_add_target target) |
576 | 575 | # Users care about the data file, so hide the hash/timestamp file. |
577 | 576 | COMMENT "Generating ${file}" |
578 | 577 | # Use a dedicated build stamp as the primary output so IDE |
579 | | - # generators keep an explicit build step for each materialized file. |
| 578 | + # generators keep an explicit build step for each materialized file |
| 579 | + # even when metadata is redirected outside the data tree. |
580 | 580 | # List the hash record and real file as secondary outputs. |
581 | 581 | # The files must be listed in this order so CMake can hide from the |
582 | 582 | # make tool that a symlink target may not be newer than the input. |
|
0 commit comments