Skip to content

Build all targets matching wildcard or regex

See https://stackoverflow.com/questions/47553569/how-can-i-build-multiple-targets-using-cmake-build

I keep running into cases where I'd like to build a subset of targets. I can do it with some command-line gymnastics, grepping the output of --target help, but it's very awk-ward. ;-)

Better would be if, like in ctest, I could do something like --target-regex '^catch_.*Foo' and have it build all of the catch_...Foo... targets.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information