diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-02 00:09:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-02 00:09:04 +0300 |
commit | cb3d980a1f4b84303a03f4caf21c158fdd51cae7 (patch) | |
tree | d611f786f78f090c3deb0059aba59bb0ba0f6028 /docs/markdown | |
parent | 357b34f9154ee3aae50d06d32ea6c4e0e152558c (diff) | |
parent | 4df86505608d768344078916d7d6f241de0e5f5a (diff) | |
download | meson-cb3d980a1f4b84303a03f4caf21c158fdd51cae7.zip meson-cb3d980a1f4b84303a03f4caf21c158fdd51cae7.tar.gz meson-cb3d980a1f4b84303a03f4caf21c158fdd51cae7.tar.bz2 |
Merge pull request #2282 from NickeZ/improve-boost
Improve boost
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Dependencies.md | 15 | ||||
-rw-r--r-- | docs/markdown/Release-notes-for-0.43.0/001-boost-platform-improvement.md | 10 |
2 files changed, 23 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 diff --git a/docs/markdown/Release-notes-for-0.43.0/001-boost-platform-improvement.md b/docs/markdown/Release-notes-for-0.43.0/001-boost-platform-improvement.md new file mode 100644 index 0000000..2cd44ce --- /dev/null +++ b/docs/markdown/Release-notes-for-0.43.0/001-boost-platform-improvement.md @@ -0,0 +1,10 @@ +## Portability improvements to Boost Dependency + +The Boost dependency has been improved to better detect the various ways to +install boost on multiple platforms. At the same time the `modules` semantics +for the dependency has been changed. Previously it was allowed to specify +header directories as `modules` but it wasn't required. Now, modules are only +used to specify libraries that require linking. + +This is a breaking change and the fix is to remove all modules that aren't +found. |