summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSubmitCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-05-08 17:49:06 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-05-08 17:49:06 (GMT)
commit1b35cabc275037e56b35a22e16f8872e0c45164e (patch)
treef1b1e88eb6a8809b832d493559cddee5781a7c24 /Source/CTest/cmCTestSubmitCommand.cxx
parent8adc177bcf2b4f98dbd37801588a1184c1e7ae4b (diff)
downloadCMake-1b35cabc275037e56b35a22e16f8872e0c45164e.zip
CMake-1b35cabc275037e56b35a22e16f8872e0c45164e.tar.gz
CMake-1b35cabc275037e56b35a22e16f8872e0c45164e.tar.bz2
ENH: Add notes
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r--Source/CTest/cmCTestSubmitCommand.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx
index b8fe466..cc4abf5 100644
--- a/Source/CTest/cmCTestSubmitCommand.cxx
+++ b/Source/CTest/cmCTestSubmitCommand.cxx
@@ -81,6 +81,22 @@ bool cmCTestSubmitCommand::InitialPass(
m_CTest->SetCTestConfigurationFromCMakeVariable(m_Makefile, "DropSitePassword", "CTEST_DROP_SITE_PASSWORD");
m_CTest->SetCTestConfigurationFromCMakeVariable(m_Makefile, "ScpCommand", "CTEST_SCP_COMMAND");
+ const char* notesFilesVariable = m_Makefile->GetDefinition("CTEST_NOTES_FILES");
+ if (notesFilesVariable)
+ {
+ std::vector<std::string> notesFiles;
+ std::vector<cmStdString> newNotesFiles;
+ cmSystemTools::ExpandListArgument(notesFilesVariable,notesFiles);
+ std::vector<std::string>::iterator it;
+ for ( it = notesFiles.begin();
+ it != notesFiles.end();
+ ++ it )
+ {
+ newNotesFiles.push_back(*it);
+ }
+ m_CTest->GenerateNotesFile(newNotesFiles);
+ }
+
cmCTestGenericHandler* handler = m_CTest->GetHandler("submit");
if ( !handler )
{