Skip to content

Commit cc7fc6e

Browse files
committed
Add link entry also to executable and test sections
- allows external library dependencies also for single targets
1 parent 681e4ad commit cc7fc6e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

manifest-reference.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ See [specifying dependencies](#specifying-dependencies) for more details.
230230

231231
> Dependencies supported in Bootstrap fpm only
232232
233+
Executables can also specify their own external library dependencies.
234+
See [external libraries](#link-external-libraries) for more details.
235+
236+
> Currently not supported in any version
237+
233238
*Example:*
234239

235240
```toml
@@ -240,6 +245,7 @@ main = "program.f90"
240245

241246
[[ executable ]]
242247
name = "app-tool"
248+
link = "z"
243249
[executable.dependencies]
244250
helloff = { git = "https://gitlab.com/everythingfunctional/helloff.git" }
245251
```
@@ -269,6 +275,11 @@ See [specifying dependencies](#specifying-dependencies) for more details.
269275

270276
> Dependencies supported in Bootstrap fpm only
271277
278+
Tests can also specify their own external library dependencies.
279+
See [external libraries](#link-external-libraries) for more details.
280+
281+
> Currently not supported in any version
282+
272283
*Example:*
273284

274285
```toml
@@ -279,6 +290,7 @@ main = "tester.F90"
279290

280291
[[ test ]]
281292
name = "tester"
293+
link = ["blas", "lapack"]
282294
[test.dependencies]
283295
helloff = { git = "https://gitlab.com/everythingfunctional/helloff.git" }
284296
```

0 commit comments

Comments
 (0)