However, I realized quickly that the variable CMAKE_COMMAND is not defined when running ctest. The same is true for the variable CMAKE_CTEST_COMMAND. (Other variables I did not test.)
Is this a known limitation or an oversight?
And if the reason should be that ctest could be run without any cmake executable around, wouldn’t it be useful to give ctest the -E option that cmake has and define at least the CMAKE_CTEST_COMMAND variable?