build-cpp / cmkr

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

Unnecessary quotes wrapped around command strings #122

Closed anthonyprintup closed 9 months ago

anthonyprintup commented 9 months ago

When generating CMake files for tests, the command arguments shouldn't be wrapped in quotes. At the moment this behavior leads to weird bugs with cmkr where it may not properly parse (auto-generated) input from the command line (check examples). A possible solution might be to manually generate the arguments list string before it's passed to the generator here: cmake_generator.cpp#L1352.

Examples:

Expected behavior (arguments passed to the command aren't wrapped):

image image