diff options
author | Corentin Noël <corentin@elementary.io> | 2017-10-03 20:26:16 +0200 |
---|---|---|
committer | Corentin Noël <corentin@elementary.io> | 2017-10-03 20:26:16 +0200 |
commit | 1320a98a33e4e9f188e5daa143316b24d0dce819 (patch) | |
tree | 82ea281b163115277e1c9524283b0d371b6c21ac /docs/markdown/Dependencies.md | |
parent | f13887b64a9d535682668960493158ae15bfbb2d (diff) | |
parent | 0c3d58baba4a61558ed9b4905f26155a3e95cf6c (diff) | |
download | meson-1320a98a33e4e9f188e5daa143316b24d0dce819.zip meson-1320a98a33e4e9f188e5daa143316b24d0dce819.tar.gz meson-1320a98a33e4e9f188e5daa143316b24d0dce819.tar.bz2 |
Merge github.com:mesonbuild/meson into vala-target-dirs
Diffstat (limited to 'docs/markdown/Dependencies.md')
-rw-r--r-- | docs/markdown/Dependencies.md | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 187c4fe..c46334c 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -50,8 +50,16 @@ pkg-config files. Meson has autodetection support for some of these. ## Boost ## Boost is not a single dependency but rather a group of different -libraries. To use Boost with Meson, simply list which Boost modules -you would like to use. +libraries. To use Boost headers-only libraries, simply add Boost as a +dependency. + +```meson +boost_dep = dependency('boost') +exe = executable('myprog', 'file.cc', dependencies : boost_dep) +``` + +To link against boost with Meson, simply list which libraries you would like to +use. ```meson boost_dep = dependency('boost', modules : ['thread', 'utility']) @@ -65,6 +73,9 @@ If your boost headers or libraries are in non-standard locations you can set the BOOST_ROOT, BOOST_INCLUDEDIR, and/or BOOST_LIBRARYDIR environment variables. +You can set the argument `threading` to `single` to use boost libraries that +has been compiled for single-threaded use instead. + ## GTest and GMock ## GTest and GMock come as sources that must be compiled as part of your |