Thanks for that context.
That’s reasonable for the rationale you cited.
I’m concluding that it is not a best practice to include a set(CMAKE_SKIP_TEST_ALL_DEPENDENCY FALSE) line in every top-level CMakeLists.txt because:
- It adds clutter
- running
ctestdirectly is preferred over usage of thetestbuild target anyway, and - the test target is intended to be a shorthand for running
ctestdirectly which is contradicted byset(CMAKE_SKIP_TEST_ALL_DEPENDENCY FALSE)semantics.