diff options
author | GabrĂel ArthĂșr PĂ©tursson <gabriel@system.is> | 2017-07-02 21:43:09 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-04 16:54:59 -0400 |
commit | d5e47ade8078a9c4e945f530ed40a61daf75c040 (patch) | |
tree | ccb47e064d740e64839d43be6f151bfad4e1a27d | |
parent | 917e12e4e722e0c946dc4750d4d100e3b9a41bf1 (diff) | |
download | meson-d5e47ade8078a9c4e945f530ed40a61daf75c040.zip meson-d5e47ade8078a9c4e945f530ed40a61daf75c040.tar.gz meson-d5e47ade8078a9c4e945f530ed40a61daf75c040.tar.bz2 |
doc: Mention that C/C++ language versions can be set per-target
-rw-r--r-- | docs/markdown/howtox.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/howtox.md b/docs/markdown/howtox.md index f95dfb9..2dd5ddf 100644 --- a/docs/markdown/howtox.md +++ b/docs/markdown/howtox.md @@ -17,6 +17,12 @@ project('myproj', 'c', 'cpp', default_options : ['c_std=c11', 'cpp_std=c++11']) ``` +The language version can also be set on a per-target basis. + +```meson +executable(..., override_options : ['c_std=c11']) +``` + ## Enable threads Lots of people seem to do this manually with `find_library('pthread')` or something similar. Do not do that. It is not portable. Instead do this. |