build-cpp / cmkr

Modern build system based on CMake and TOML.
https://cmkr.build
MIT License
423 stars 28 forks source link

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

Open mrexodia opened 10 months ago

mrexodia commented 10 months ago

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.