aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/cmake/tracetargets.py4
-rw-r--r--test cases/osx/9 framework recasting/meson.build2
2 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/cmake/tracetargets.py b/mesonbuild/cmake/tracetargets.py
index aee67ea..5a9d352 100644
--- a/mesonbuild/cmake/tracetargets.py
+++ b/mesonbuild/cmake/tracetargets.py
@@ -137,9 +137,9 @@ def resolve_cmake_trace_targets(target_name: str,
elif 'IMPORTED_IMPLIB' in tgt.properties:
res.libraries += [x for x in tgt.properties['IMPORTED_IMPLIB'] if x]
elif f'IMPORTED_LOCATION_{cfg}' in tgt.properties:
- res.libraries += [x for x in tgt.properties[f'IMPORTED_LOCATION_{cfg}'] if x]
+ targets += [x for x in tgt.properties[f'IMPORTED_LOCATION_{cfg}'] if x]
elif 'IMPORTED_LOCATION' in tgt.properties:
- res.libraries += [x for x in tgt.properties['IMPORTED_LOCATION'] if x]
+ targets += [x for x in tgt.properties['IMPORTED_LOCATION'] if x]
if 'LINK_LIBRARIES' in tgt.properties:
targets += [x for x in tgt.properties['LINK_LIBRARIES'] if x]
diff --git a/test cases/osx/9 framework recasting/meson.build b/test cases/osx/9 framework recasting/meson.build
index 2b15843..83fe19e 100644
--- a/test cases/osx/9 framework recasting/meson.build
+++ b/test cases/osx/9 framework recasting/meson.build
@@ -1,5 +1,5 @@
project('framework recasting', 'c', 'cpp')
-x = dependency('OpenAL')
+x = dependency('OpenAL', method: 'cmake')
y = executable('tt', files('main.cpp'), dependencies: x)