The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
339 B
14 lines
339 B
# Threads |
|
|
|
Meson has a very simple notational shorthand for enabling thread support on your build targets. First you obtain the thread dependency object like this: |
|
|
|
```meson |
|
thread_dep = dependency('threads') |
|
``` |
|
|
|
And then you just use it in a target like this: |
|
|
|
```meson |
|
executable('threadedprogram', ... |
|
dependencies : thread_dep) |
|
```
|
|
|