Skip to content

Commit

Permalink
doc: update dependency_resolution.md
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Dec 15, 2023
1 parent ae97171 commit cc62341
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions doc/dependency_resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ Assuming a dependency is installed in `$prefix`, it uses one or more of the foll
Take a look at each dependency's installation prefix to see which of these options
are available.

One way of using these dependencies is with environment variables:
To use these dependencies with your software, they must be findable by its build system;
for `iguana`, the build system is `meson`, which accepts the build options
```bash
export PKG_CONFIG_PATH=$prefix/lib/pkgconfig
export CMAKE_PREFIX_PATH=$prefix
-Dpkg_config_path=$prefix/lib/pkgconfig
-Dcmake_prefix_path=$prefix
```
Multiple paths are delimited by colons.
(where multiple paths are delimited by commas).

A better way is to use build options; for `meson`, use the following:
Environment variables may be used instead of build options for a general approach:
```bash
-Dpkg_config_path=$prefix/lib/pkgconfig
-Dcmake_prefix_path=$prefix
export PKG_CONFIG_PATH=$prefix/lib/pkgconfig
export CMAKE_PREFIX_PATH=$prefix
```
Multiple paths are delimited by commas.
(where multiple paths are delimited by colons).

0 comments on commit cc62341

Please sign in to comment.