Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[magnum] When it is transitive (and direct) requirement it links plugins too #46

Open
jgsogo opened this issue Apr 25, 2022 · 1 comment

Comments

@jgsogo
Copy link
Owner

jgsogo commented Apr 25, 2022

🚨 If using TARGETS the library AnyAudioImported is propagated to Magnum 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 #44 (comment)

@jgsogo
Copy link
Owner Author

jgsogo commented Apr 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant