Skip to content

Commit 2c0975b

Browse files
committed
Update: manifest-reference with new external-modules key
1 parent a49b017 commit 2c0975b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

manifest-reference.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Every manifest file consists of the following sections:
3333
Toggle automatic discovery of executables
3434
- [*link*](#link-external-libraries):
3535
Link with external dependencies
36+
- [*external-modules*](#use-system-installed-modules):
37+
Specify modules used that are not within your fpm package
3638
- Target sections:
3739
- [*library*](#library-configuration)
3840
Configuration of the library target
@@ -353,6 +355,26 @@ In this case the order of the libraries matters:
353355
link = ["blas", "lapack"]
354356
```
355357

358+
## Use system-installed modules
359+
360+
To use modules that are not defined within your fpm package or its dependencies,
361+
specify the module name using the *external-modules* key in the *build* table.
362+
363+
*Example:*
364+
365+
```toml
366+
[build]
367+
external-modules = "netcdff"
368+
```
369+
370+
Multiple external modules can be specified as a list.
371+
372+
*Example:*
373+
374+
```toml
375+
[build]
376+
external-modules = ["netcdff","h5lt"]
377+
```
356378

357379
## Automatic target discovery
358380

0 commit comments

Comments
 (0)