build-cpp / cmkr

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

Error when there are no source files added for the specified language #87

Closed mrexodia closed 1 year ago

mrexodia commented 1 year ago
[project]
name = "blah"

[target.foo]
type = "executable"

This will cause an error at generation time, because foo does not have any sources so CMake cannot determine which linker to use. It's important to look for .cpp .c files, headers would not trigger a language detection in CMake either.