Skip to content

cmake: avoid adding testing directories if testing is disabled

Some testing directories have side effects such as installing headers or compiling code that ultimately doesn't end up getting used.


Noticed because VTK was compiling some VTK-m testing TU that doesn't matter because none of the tests are enabled. Compilations take 2+ minutes on the (slow) macOS runner which is substantial.

Merge request reports

Loading