diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Reference-manual.md | 4 | ||||
-rw-r--r-- | docs/markdown/snippets/find_library_static.md | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index f2b0416..7668fa0 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1724,7 +1724,9 @@ the following methods: instead of a not-found dependency. *Since 0.50.0* the `has_headers` keyword argument can be a list of header files that must be found as well, using `has_header()` method. All keyword arguments prefixed with `header_` will be - passed down to `has_header()` method with the prefix removed. + passed down to `has_header()` method with the prefix removed. *Since 0.51.0* + the `static` keyword (boolean) can be set to `true` to limit the search to + static libraries and `false` for dynamic/shared. - `first_supported_argument(list_of_strings)`, given a list of strings, returns the first argument that passes the `has_argument` diff --git a/docs/markdown/snippets/find_library_static.md b/docs/markdown/snippets/find_library_static.md new file mode 100644 index 0000000..a1b7fa9 --- /dev/null +++ b/docs/markdown/snippets/find_library_static.md @@ -0,0 +1,6 @@ +## Add keyword `static` to `find_library` + +`find_library` has learned the `static` keyword. They keyword must be a boolean, +where `true` only searches for static libraries and `false` only searches for +dynamic/shared. Leaving the keyword unset will keep the old behavior of first +searching for dynamic and then falling back to static. |