File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ Every manifest file consists of the following sections:
33
33
Toggle automatic discovery of executables
34
34
- [ * link* ] ( #link-external-libraries ) :
35
35
Link with external dependencies
36
+ - [ * external-modules* ] ( #use-system-installed-modules ) :
37
+ Specify modules used that are not within your fpm package
36
38
- Target sections:
37
39
- [ * library* ] ( #library-configuration )
38
40
Configuration of the library target
@@ -353,6 +355,26 @@ In this case the order of the libraries matters:
353
355
link = [" blas" , " lapack" ]
354
356
```
355
357
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
+ ```
356
378
357
379
## Automatic target discovery
358
380
You can’t perform that action at this time.
0 commit comments