summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestHandlerCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-11 21:15:02 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-11 21:15:02 (GMT)
commit63a7d852494d88cb50de5fe4d2b5d7d586840211 (patch)
treeeaaec1d754c189357f4aa33b7cdee15fc461f811 /Source/CTest/cmCTestHandlerCommand.cxx
parent2541f30287d597db0a19eaff20fdd16fcd54907a (diff)
downloadCMake-63a7d852494d88cb50de5fe4d2b5d7d586840211.zip
CMake-63a7d852494d88cb50de5fe4d2b5d7d586840211.tar.gz
CMake-63a7d852494d88cb50de5fe4d2b5d7d586840211.tar.bz2
Fix for bug#9442, ctest crash if CTEST_SOURCE_DIRECTORY was not set.
Diffstat (limited to 'Source/CTest/cmCTestHandlerCommand.cxx')
-rw-r--r--Source/CTest/cmCTestHandlerCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestHandlerCommand.cxx b/Source/CTest/cmCTestHandlerCommand.cxx
index 1175879..4f15284 100644
--- a/Source/CTest/cmCTestHandlerCommand.cxx
+++ b/Source/CTest/cmCTestHandlerCommand.cxx
@@ -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] )
{