Depending on "all"

I’ve created an installcheck target. Rather than having this depend on install (which would be affected by the configure-time value of CMAKE_INSTALL_PREFIX), it depends on an installcheck-install target that calls cmake_install.cmake with a value for CMAKE_INSTALL_PREFIX that is subordinate to the builddir.

This works just fine if the software has already been built (i.e., cmake --build /path/to/builddir); but if it has not, it will fail because installcheck-install doesn’t depend on all (or equivalent). By the looks of issue 8438, there’s not currently a way to do precisely that.

Is there another reasonable way I could support calling installcheck without an explicit build step first?