diff options
Diffstat (limited to 'Source/CTest/cmCTestConfigureCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestConfigureCommand.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestConfigureCommand.cxx b/Source/CTest/cmCTestConfigureCommand.cxx index 9a30fe8..ce2ff3c 100644 --- a/Source/CTest/cmCTestConfigureCommand.cxx +++ b/Source/CTest/cmCTestConfigureCommand.cxx @@ -24,22 +24,26 @@ cmCTestGenericHandler* cmCTestConfigureCommand::InitializeHandler() if ( this->Values[ct_BUILD] ) { this->CTest->SetCTestConfiguration("BuildDirectory", - this->Values[ct_BUILD]); + cmSystemTools::CollapseFullPath( + this->Values[ct_BUILD]).c_str()); } else { this->CTest->SetCTestConfiguration("BuildDirectory", - this->Makefile->GetDefinition("CTEST_BINARY_DIRECTORY")); + cmSystemTools::CollapseFullPath( + this->Makefile->GetDefinition("CTEST_BINARY_DIRECTORY")).c_str()); } if ( this->Values[ct_SOURCE] ) { this->CTest->SetCTestConfiguration("SourceDirectory", - this->Values[ct_SOURCE]); + cmSystemTools::CollapseFullPath( + this->Values[ct_SOURCE]).c_str()); } else { this->CTest->SetCTestConfiguration("SourceDirectory", - this->Makefile->GetDefinition("CTEST_SOURCE_DIRECTORY")); + cmSystemTools::CollapseFullPath( + this->Makefile->GetDefinition("CTEST_SOURCE_DIRECTORY")).c_str()); } if ( this->CTest->GetCTestConfiguration("BuildDirectory").empty() ) { |