Fix for bug#9442, ctest crash if CTEST_SOURCE_DIRECTORY was not set.
This commit is contained in:
parent
2541f30287
commit
63a7d85249
|
@ -111,7 +111,7 @@ bool cmCTestHandlerCommand
|
||||||
{
|
{
|
||||||
this->CTest->SetCTestConfiguration("SourceDirectory",
|
this->CTest->SetCTestConfiguration("SourceDirectory",
|
||||||
cmSystemTools::CollapseFullPath(
|
cmSystemTools::CollapseFullPath(
|
||||||
this->Makefile->GetDefinition("CTEST_SOURCE_DIRECTORY")).c_str());
|
this->Makefile->GetSafeDefinition("CTEST_SOURCE_DIRECTORY")).c_str());
|
||||||
}
|
}
|
||||||
if ( this->Values[ct_SUBMIT_INDEX] )
|
if ( this->Values[ct_SUBMIT_INDEX] )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue