Skip to content

Commit 684474e

Browse files
Supreeemejpakkane
authored andcommitted
Document that custom_target outputs cannot be in a subdirectory
1 parent 79935ff commit 684474e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/yaml/functions/custom_target.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ description: |
1212
custom_target('foo', output: 'file.txt', ...)
1313
```
1414
15+
The files passed to `output:` cannot contain path separators. See the
16+
[manual on custom build targets](Custom-build-targets.md#details-on-command-invocation) for
17+
an explanation on where output files should be placed.
18+
1519
You can install the outputted files with the `install_dir:` kwarg, see below.
1620
1721
*Since 0.60.0* the name argument is optional and defaults to the basename of the first
@@ -217,7 +221,8 @@ kwargs:
217221
218222
output:
219223
type: array[str]
220-
description: Array of output files.
224+
description: |
225+
Array of output files. These cannot contain path separators.
221226
222227
env:
223228
since: 0.57.0

0 commit comments

Comments
 (0)