Document that add_languages() returns a boolean [skip ci]
@@ -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
