aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/base.py
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2020-04-15 12:27:41 +0100
committerDaniel Stone <daniels@collabora.com>2020-04-15 21:18:26 +0100
commit98e5e1ddc5f7f75eea7622dbdbd67bada1cd00ef (patch)
tree56bb3c98f167fc9aa22cf8837e5c7bddf933f955 /mesonbuild/dependencies/base.py
parent1d7d9c88e8bc3c17ea7f18e02ca30635212b9384 (diff)
downloadmeson-98e5e1ddc5f7f75eea7622dbdbd67bada1cd00ef.zip
meson-98e5e1ddc5f7f75eea7622dbdbd67bada1cd00ef.tar.gz
meson-98e5e1ddc5f7f75eea7622dbdbd67bada1cd00ef.tar.bz2
dependencies/cmake: Add Windows/VS library regex
When finding dependencies from CMake, use a smarter regex to determine whether or not a dependency is actually a link argument, and pass through Windows link arguments properly.
Diffstat (limited to 'mesonbuild/dependencies/base.py')
-rw-r--r--mesonbuild/dependencies/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py
index 50f4179..068e45e 100644
--- a/mesonbuild/dependencies/base.py
+++ b/mesonbuild/dependencies/base.py
@@ -1411,7 +1411,8 @@ class CMakeDependency(ExternalDependency):
'Valid targets are:\n{}'.format(name, list(self.traceparser.targets.keys())))
# Set dependencies with CMake targets
- reg_is_lib = re.compile(r'^(-l[a-zA-Z0-9_]+|-pthread)$')
+ # recognise arguments we should pass directly to the linker
+ reg_is_lib = re.compile(r'^(-l[a-zA-Z0-9_]+|-pthread|-delayload:[a-zA-Z0-9_\.]+|[a-zA-Z0-9_]+\.lib)$')
processed_targets = []
incDirs = []
compileDefinitions = []