Why does cmake not have a `--run option` , or does it?

Can we have something like this, please


cmake --run --preset brewgcc –target hello

to run the add_executable with the name hello

or do we have that already?

1 Like

ok, its not that hard to add a target run-${target} with a wrapper around add_executable, but why do I have to do that?

if there are better ways, please let me know

1 Like