Help: CTEST_RESOURCE_SPEC_FILE interaction with other methods not specified
A new CTEST_RESOURCE_SPEC_FILE
variable is being added in CMake 3.18 (see !4564 (merged)). The current docs don’t adequately specify how this variable relates to the other two ways of controlling the resource spec file:
- Providing a
ctest --resource-spec-file
command line option. - Passing a
RESOURCE_SPEC_FILE
argument to thectest_test()
command.
Even looking at the code, it isn’t clear to me how the CTEST_RESOURCE_SPEC_FILE
is supposed to interact with those two methods. Which one applies when, if more than one method is given? I thought CTEST_RESOURCE_SPEC_FILE
was essentially just providing a default for the RESOURCE_SPEC_FILE
option to the ctest_test()
command, but I also see it mentioned at the handler level (i.e. in cmCTestTestHandler
). We should clarify the docs around this new variable for the 3.18 release.
This was originally posted in the forums, but moving it here to track for the release.