diff options
author | kiwixz <kiwixz@outlook.com> | 2023-07-15 19:41:19 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-07-19 15:04:09 -0700 |
commit | 727b737bc3d94bccc2295b9811dc0c167f1aa5f9 (patch) | |
tree | f3e7ffcbdff6863adb3271f80153da347e24cb4c /mesonbuild/cmake/tracetargets.py | |
parent | 1d84989078026acbfd256f294f5359361d2f1b0d (diff) | |
download | meson-727b737bc3d94bccc2295b9811dc0c167f1aa5f9.zip meson-727b737bc3d94bccc2295b9811dc0c167f1aa5f9.tar.gz meson-727b737bc3d94bccc2295b9811dc0c167f1aa5f9.tar.bz2 |
cmake: find dependencies with bare library names on all platforms
Diffstat (limited to 'mesonbuild/cmake/tracetargets.py')
-rw-r--r-- | mesonbuild/cmake/tracetargets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/cmake/tracetargets.py b/mesonbuild/cmake/tracetargets.py index 338364d..bb5faa3 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. |