CTest: ctest_build() should not require (CTEST_)PROJECT_NAME
Trying to execute a CTest dashboard script with a CMake project that does not have a CTestConfig.cmake
file leads to an error message complaining that either CTEST_PROJECT_NAME
should be set in CTestConfig.cmake
or that PROJECT_NAME
should be passed as an argument to ctest_build()
.
Looking at the source code of cmCTestBuildCommand.cxx
, it seems that those variables are not actually used apart from deciding whether or not to print this error message.
Please remove this check. Also, please document that the value of the PROJECT_NAME
argument has actually no effect.