Disable valgrind per target?

If I run ‘ctest -T memcheck’ it runs valgrind on all unit tests. But how to programmatically disable valgrind per target?

There is no way currently. This issue is what you’re interested in I believe.

Thanks for the link, appreciate it!