Fix for bug#9442, ctest crash if CTEST_SOURCE_DIRECTORY was not set.

This commit is contained in:
Bill Hoffman 2009-09-11 17:15:02 -04:00
parent 2541f30287
commit 63a7d85249
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ bool cmCTestHandlerCommand
{
this->CTest->SetCTestConfiguration("SourceDirectory",
cmSystemTools::CollapseFullPath(
this->Makefile->GetDefinition("CTEST_SOURCE_DIRECTORY")).c_str());
this->Makefile->GetSafeDefinition("CTEST_SOURCE_DIRECTORY")).c_str());
}
if ( this->Values[ct_SUBMIT_INDEX] )
{