diff options
-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 |