build-cpp / cmkr

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

Suggestions for non-existent `link-flags` or `compile-flags` or `flags` target keys #134

Open mrexodia opened 6 months ago

mrexodia commented 6 months ago
[target.test]
type = "executable"
link-flags = ["/NOENTRY"]

This will error with:

[error] Unknown key 'link-flags'
 --> C:\CodeBlocks\x64dbg_tests\cmake.toml:12
    |
 12 | link-flags = ["/NOENTRY"]
    | ~~~~~~~~~~

This should be something like: Unknown key 'link-flags' (did you mean 'link-options'?). Same for a few other keys that users might try (see title).