These variables apply to the ctest_build command, not ctest_test
ctest_build
ctest_test
Relates: #19217 (closed)