File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ Every manifest file consists of the following sections:
29
29
Toggle automatic discovery of test executables
30
30
- [ * auto-executables* ] ( #automatic-target-discovery ) :
31
31
Toggle automatic discovery of executables
32
+ - [ * link* ] ( #link-external-libraries ) :
33
+ Link with external dependencies
32
34
- Target sections:
33
35
- [ * library* ] ( #library-configuration )
34
36
Configuration of the library target
@@ -282,6 +284,32 @@ helloff = { git = "https://gitlab.com/everythingfunctional/helloff.git" }
282
284
```
283
285
284
286
287
+ ## Link external libraries
288
+
289
+ > Supported in Fortran fpm only
290
+
291
+ To declare link time dependencies on external libraries a list of native libraries can be specified in the * link* entry.
292
+ Specify either one library as string or a list of strings in case several libraries should be linked.
293
+ When possible the project should only link one native library.
294
+ The list of library dependencies is exported to dependent packages.
295
+
296
+ * Example:*
297
+
298
+ To link against the zlib compression library use
299
+
300
+ ``` toml
301
+ link = " z"
302
+ ```
303
+
304
+ To dependent on LAPACK also BLAS should be linked.
305
+ In this case the order of the libraries matters:
306
+
307
+ ``` toml
308
+ [build ]
309
+ link = [" blas" , " lapack" ]
310
+ ```
311
+
312
+
285
313
## Automatic target discovery
286
314
287
315
> Supported in Fortran fpm only
You can’t perform that action at this time.
0 commit comments