meson.build: refuse to build with buggy Boost version 1.67

This commit is contained in:
Max Kellermann 2018-11-04 12:31:49 +01:00
parent 86f1074905
commit 10ec478a9c
2 changed files with 6 additions and 0 deletions

1
NEWS
View File

@ -9,6 +9,7 @@ ver 0.21.1 (not yet released)
* fix build failure on Linux-PowerPC
* fix build failure on FreeBSD
* eliminate DLL dependencies on Windows
* refuse to build with buggy Boost version 1.67
* require Meson 0.47.2 because a Meson 0.47.1 bug breaks our build
ver 0.21 (2018/10/31)

View File

@ -172,6 +172,11 @@ inc = include_directories(
)
boost_dep = dependency('boost', version: '>= 1.58')
if boost_dep.version() == '1.67'
# https://github.com/MusicPlayerDaemon/MPD/pull/384
# https://github.com/boostorg/lockfree/commit/12726cda009a855073b9bedbdce57b6ce7763da2
error('Your Boost version 1.67 is known to be buggy, and the MPD build will fail. Please upgrade to Boost 1.68 or later.')
endif
sources = [
version_cxx,