You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -378,12 +378,14 @@ To link against the zlib compression library use
378
378
link = "z"
379
379
```
380
380
381
-
To dependent on LAPACK also BLAS should be linked.
382
-
In this case the order of the libraries matters:
381
+
When linking multiple libraries with dependencies, the order matters.
382
+
A library must appear before the libraries it depends on.
383
+
384
+
For example, since LAPACK depends on BLAS, BLAS must come later in the list:
383
385
384
386
```toml
385
387
[build]
386
-
link = ["blas", "lapack"]
388
+
link = ["lapack", "blas"]
387
389
```
388
390
389
391
## Use system-installed modules
@@ -559,8 +561,8 @@ The local dependency path is given relative to the ``fpm.toml`` it is written to
559
561
560
562
### Dependency-specific macro setting
561
563
562
-
As of ``fpm>=0.9.1``, an array of dependency-specific macros can be passed to a single dependency from the manifest, in the same fashion as in the manifest's [preprocessor configuration](#preprocessor-configuration) table. Its `preprocess` table needs to be entered as part of the dependency entry. fpm will not check if the passed macros collide with the dependencie's own manifest, so, it is the user's responsibility to ensure that no collisions or unexpected behavior occur.
563
-
For example, one can control the `REAL` precision that one library is to be used with:
564
+
As of ``fpm>=0.9.1``, an array of dependency-specific macros can be passed to a single dependency from the manifest, in the same fashion as in the manifest's [preprocessor configuration](#preprocessor-configuration) table. Its `preprocess` table needs to be entered as part of the dependency entry. fpm will not check if the passed macros collide with the dependencie's own manifest, so, it is the user's responsibility to ensure that no collisions or unexpected behavior occur.
565
+
For example, one can control the `REAL` precision that one library is to be used with:
564
566
565
567
```toml
566
568
[dependencies]
@@ -586,7 +588,7 @@ library = true
586
588
587
589
## Preprocessor configuration
588
590
589
-
Under the *preprocess* section, you can specify one or more preprocessor to use in an fpm project.
591
+
Under the *preprocess* section, you can specify one or more preprocessor to use in an fpm project.
0 commit comments