Open jgsogo opened 2 years ago
The problem is when magnum
is included via transitive dep instead of direct dependency.
Conan includes transitive dependencies (render_context
-> magnum
) and then it fails. If we find_package(Magnum)
first and then find_package(render_context)
it works.
🚨 If using
TARGETS
the libraryAnyAudioImported
is propagated toMagnum
targets and linking fails because it cannot be found (it is in a different directory).Need to understand how this library reaches the linker and what can be done to avoid it.
Does this only happen when this is a transitive dependency?
_Originally posted by @jgsogo in https://github.com/jgsogo/conan-recipes/pull/44#discussion_r857090918_