doc: Mention that C/C++ language versions can be set per-target

pull/2044/head
Gabríel Arthúr Pétursson 8 years ago committed by Jussi Pakkanen
parent 917e12e4e7
commit d5e47ade80
  1. 6
      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.

Loading…
Cancel
Save