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

target_link_system_libraries might not work with unqouted inputs #258

Open
aminya opened this issue Apr 29, 2024 · 2 comments
Open

target_link_system_libraries might not work with unqouted inputs #258

aminya opened this issue Apr 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@aminya
Copy link
Owner

aminya commented Apr 29, 2024

When using target_link_system_libraries, sometimes the packages provide both optimized and debug targets.
However, when using

target_link_system_libraries(main PRIVATE ${FOUND_LIBRARIES})

It does not work since the separate optimized/debug values are treated as separate libraries instead of one library.

Upvote & Fund

@aminya is using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

Thank you in advance for helping prioritize & fund our backlog!


Fund with Polar
@aminya aminya added the bug Something isn't working label Apr 29, 2024
@aminya
Copy link
Owner Author

aminya commented Apr 29, 2024

@FeignClaims Is this something you can look into?

@FeignClaims
Copy link
Contributor

@aminya Could you give a real example on this? I personally use conan most times and it usually wraps optimized and debug targets into a single target, so I failed to reason how this happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants