diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2019-07-05 14:19:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 14:19:04 -0400 |
commit | dd8f75ad93d7d578648c8290b875013078ffdf86 (patch) | |
tree | 69ae898f71542e518cb5922bea4a9fe976158715 /docs | |
parent | 0bf5c27b64d650042d08ab4162307dce265c62bf (diff) | |
download | meson-dd8f75ad93d7d578648c8290b875013078ffdf86.zip meson-dd8f75ad93d7d578648c8290b875013078ffdf86.tar.gz meson-dd8f75ad93d7d578648c8290b875013078ffdf86.tar.bz2 |
Document that add_languages() returns a boolean [skip ci] (#5600)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Reference-manual.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 9c98547..3793ce3 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -52,7 +52,7 @@ Like `add_global_arguments` but the arguments are passed to the linker. ### add_languages() ``` meson - add_languages(*langs*) + bool add_languages(*langs*) ``` Add support for new programming languages. Equivalent to having them @@ -64,6 +64,9 @@ project('foobar', 'c') if compiling_for_osx add_languages('objc') endif +if add_languages('cpp', required : false) + executable('cpp-app', 'main.cpp') +endif ``` Takes one keyword argument, `required`. It defaults to `true`, which |