From 727b737bc3d94bccc2295b9811dc0c167f1aa5f9 Mon Sep 17 00:00:00 2001 From: kiwixz Date: Sat, 15 Jul 2023 19:41:19 +0200 Subject: [PATCH] cmake: find dependencies with bare library names on all platforms --- mesonbuild/cmake/tracetargets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/cmake/tracetargets.py b/mesonbuild/cmake/tracetargets.py index 338364dbd..bb5faa395 100644 --- a/mesonbuild/cmake/tracetargets.py +++ b/mesonbuild/cmake/tracetargets.py @@ -50,8 +50,8 @@ def resolve_cmake_trace_targets(target_name: str, res.libraries += [curr] elif Path(curr).is_absolute() and Path(curr).exists(): res.libraries += [curr] - elif env.machines.build.is_windows() and reg_is_maybe_bare_lib.match(curr) and clib_compiler: - # On Windows, CMake library dependencies can be passed as bare library names, + elif reg_is_maybe_bare_lib.match(curr) and clib_compiler: + # CMake library dependencies can be passed as bare library names, # CMake brute-forces a combination of prefix/suffix combinations to find the # right library. Assume any bare argument passed which is not also a CMake # target must be a system library we should try to link against.