summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-10-18 19:04:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-10-18 19:04:05 (GMT)
commit1322c416ddb9a3179ab02da8710ed88dfcaaa431 (patch)
treed5d04c897f755c42bfbba1f740f160827bc9f1b1 /Source
parentc8185891134d7928f685cf068bd8410eb8519731 (diff)
parent7041cd6a884d96941af0ac7aad442a83618aff71 (diff)
downloadCMake-1322c416ddb9a3179ab02da8710ed88dfcaaa431.zip
CMake-1322c416ddb9a3179ab02da8710ed88dfcaaa431.tar.gz
CMake-1322c416ddb9a3179ab02da8710ed88dfcaaa431.tar.bz2
Merge topic 'fix-12517-ctest-crash'
7041cd6 CTest: Fix crash when variables are not defined
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestConfigureCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestConfigureCommand.cxx b/Source/CTest/cmCTestConfigureCommand.cxx
index 9a668bc..7a99ddf 100644
--- a/Source/CTest/cmCTestConfigureCommand.cxx
+++ b/Source/CTest/cmCTestConfigureCommand.cxx
@@ -41,7 +41,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
{
this->CTest->SetCTestConfiguration("BuildDirectory",
cmSystemTools::CollapseFullPath(
- this->Makefile->GetDefinition("CTEST_BINARY_DIRECTORY")).c_str());
+ this->Makefile->GetSafeDefinition("CTEST_BINARY_DIRECTORY")).c_str());
}
if ( this->Values[ct_SOURCE] )
@@ -54,7 +54,7 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler()
{
this->CTest->SetCTestConfiguration("SourceDirectory",
cmSystemTools::CollapseFullPath(
- this->Makefile->GetDefinition("CTEST_SOURCE_DIRECTORY")).c_str());
+ this->Makefile->GetSafeDefinition("CTEST_SOURCE_DIRECTORY")).c_str());
}
if ( this->CTest->GetCTestConfiguration("BuildDirectory").empty() )