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

Add support for ::target in link-libraries #117

Open
mrexodia opened this issue Aug 15, 2023 · 0 comments
Open

Add support for ::target in link-libraries #117

mrexodia opened this issue Aug 15, 2023 · 0 comments
Labels
feature New feature good first issue Good for newcomers

Comments

@mrexodia
Copy link
Contributor

This isn't supported by CMake, but can help prevent annoying linker errors. The implementation should do:

if(NOT TARGET target)
    message(FATAL_ERROR "No such target: target")
endif()

Before calling target_link_libraries.

@mrexodia mrexodia added good first issue Good for newcomers feature New feature labels Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature good first issue Good for newcomers
Development

No branches or pull requests

1 participant