Run CMake executable targets via the cmake command
https://a4z.noexcept.dev/blog/2026/05/23/CMake-Run-Targets.htmlEvery time I use bazel for a while, and come back to CMake, I notice that I miss a cmake --run command. Bazel has a bazel run //target command.
We can not do that with cmake, but something similar.
21
Upvotes
View all comments
Show parent comment
-2
u/throw_cpp_account May 24 '26
I thought I was pretty clear: CMake gives you no tools to build your tests. It is just up to you to figure out how to do it. And if you forget to do so, well now you just have stale test results.
No, it isn't something that you have to manually do with every build system.
Pointing out usability limitations with one tool does not mean I'm a zealot for a different one. That it apparently offends you to point out CMake issues is not my problem.