(#5260) link to builtin options in `library()` fn

As a newcomer to the Meson build system, I found the documentation of the `library()` function to be a bit misleading. Eventually I found what 'user option' referred to after digging through the docs.

This just adds a link back to the page that describes the options that are referred to in this paragraph.
This commit is contained in:
Keefer Rourke 2019-04-14 23:19:08 +00:00 committed by Jussi Pakkanen
parent 79e925b8f6
commit 53a7403f10
1 changed files with 3 additions and 2 deletions

View File

@ -1066,8 +1066,9 @@ res2 = foo / bar
```
Builds a library that is either static, shared or both depending on
the value of `default_library` user option. You should use this
instead of [`shared_library`](#shared_library),
the value of `default_library`
user [option](https://mesonbuild.com/Builtin-options.html).
You should use this instead of [`shared_library`](#shared_library),
[`static_library`](#static_library) or
[`both_libraries`](#both_libraries) most of the time. This allows you
to toggle your entire project (including subprojects) from shared to