From fe78d89d7f1fc250f51157e2d9bdabc6b329bc4d Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 17 Nov 2013 22:33:11 +0200 Subject: Add include and link path flags when using a nonstandard Boost location. --- dependencies.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dependencies.py b/dependencies.py index d68e0cc1c..605e6238d 100644 --- a/dependencies.py +++ b/dependencies.py @@ -270,7 +270,13 @@ class BoostDependency(Dependency): self.lib_modules[name] = True def get_link_flags(self): - flags = [] # Fixme, add -L if necessary. + flags = [] + if self.boost_root: + # FIXME, these are in gcc format, not msvc. + # On the other hand, so are the flags that + # pkg-config returns. + flags += '-I' + os.path.join(self.boost_root, 'include') + flags += '-L' + os.path.join(self.boost_root, 'lib') for module in self.requested_modules: if module in self.lib_modules or module in self.lib_modules_mt: linkcmd = '-lboost_' + module -- cgit v1.2.3