From 6b5403c5861771dee082c0040a6f91162ccb9c32 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 14 Aug 2006 10:51:08 -0400 Subject: [PATCH] ENH: fix for no newline on some makes fix for ctest and some symlinks --- Source/CTest/cmCTestScriptHandler.cxx | 5 +++++ Source/CTest/cmCTestStartCommand.cxx | 4 ++++ Source/cmMakefileTargetGenerator.cxx | 1 + 3 files changed, 10 insertions(+) diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx index 152a63446..29ab2d63f 100644 --- a/Source/CTest/cmCTestScriptHandler.cxx +++ b/Source/CTest/cmCTestScriptHandler.cxx @@ -385,6 +385,11 @@ int cmCTestScriptHandler::ExtractVariables() = this->Makefile->GetSafeDefinition("CTEST_SOURCE_DIRECTORY"); this->BinaryDir = this->Makefile->GetSafeDefinition("CTEST_BINARY_DIRECTORY"); + + // add in translations for src and bin + cmSystemTools::AddKeepPath(this->SourceDir.c_str()); + cmSystemTools::AddKeepPath(this->BinaryDir.c_str()); + this->CTestCmd = this->Makefile->GetSafeDefinition("CTEST_COMMAND"); this->CVSCheckOut diff --git a/Source/CTest/cmCTestStartCommand.cxx b/Source/CTest/cmCTestStartCommand.cxx index 30aff0b8a..01b48c226 100644 --- a/Source/CTest/cmCTestStartCommand.cxx +++ b/Source/CTest/cmCTestStartCommand.cxx @@ -76,6 +76,10 @@ bool cmCTestStartCommand::InitialPass( "as an argument or set CTEST_BINARY_DIRECTORY"); return false; } + + cmSystemTools::AddKeepPath(src_dir); + cmSystemTools::AddKeepPath(bld_dir); + this->CTest->EmptyCTestConfiguration(); this->CTest->SetCTestConfiguration("SourceDirectory", cmSystemTools::CollapseFullPath(src_dir).c_str()); diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index ae65daa09..098aa427f 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1187,6 +1187,7 @@ void cmMakefileTargetGenerator::WriteProgressVariables(unsigned long total, } *progressFileStream << "\n"; } + *progressFileStream << "\n"; current += this->NumberOfProgressActions; delete progressFileStream; }