From 9154a6473b28f4cb60d23a7bc15ab8b1d223c1bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Wikli=C5=84ski?= Date: Sat, 19 Aug 2017 03:13:29 +0200 Subject: Find Boost dep when there is an extra lib to link There are several components in Boost which must be linked with extra libraries. Boost Log is one of them and in special circumstances needs linking with boost_log_setup. http://www.boost.org/doc/libs/1_64_0/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.setup This fix covers the case when there is no source file corresponding to the additional library. --- mesonbuild/dependencies/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/dependencies/misc.py') diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index e9effc6..0112fd3 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -142,7 +142,7 @@ class BoostDependency(ExternalDependency): def validate_requested(self): for m in self.requested_modules: - if m not in self.src_modules: + if m not in self.src_modules and m not in self.lib_modules and m + '-mt' not in self.lib_modules_mt: msg = 'Requested Boost module {!r} not found' raise DependencyException(msg.format(m)) -- cgit v1.1