From db81b31070641771fac64cb081cb2aa457541deb Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 28 Feb 2015 03:40:43 +0200 Subject: [PATCH] Fix gmock when compiling from source on Debian derivatives. --- dependencies.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dependencies.py b/dependencies.py index 185591695..277924055 100644 --- a/dependencies.py +++ b/dependencies.py @@ -508,7 +508,9 @@ class GMockDependency(Dependency): for d in ['/usr/src/gmock/src', '/usr/src/gmock']: if os.path.exists(d): self.is_found = True - self.compile_args = ['-I' + d] + # Yes, we need both because there are multiple + # versions of gmock that do different things. + self.compile_args = ['-I/usr/src/gmock', '-I/usr/src/gmock/src'] self.link_args = [] all_src = os.path.join(d, 'gmock-all.cc') main_src = os.path.join(d, 'gmock_main.cc')