cmake: find dependencies with bare library names on all platforms

pull/11938/head
kiwixz 1 year ago committed by Dylan Baker
parent 1d84989078
commit 727b737bc3
  1. 4
      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.

Loading…
Cancel
Save