summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestGenericHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-28 15:59:31 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-04-28 15:59:31 (GMT)
commit2d81046ae20d1638927e89f5e0b78daca1e102f3 (patch)
treead74b7db193b4a5639183b6b0a4dbb6f931ddc1e /Source/CTest/cmCTestGenericHandler.cxx
parent185c282bd33e426751277c10078a14e9bcc08b85 (diff)
downloadCMake-2d81046ae20d1638927e89f5e0b78daca1e102f3.zip
CMake-2d81046ae20d1638927e89f5e0b78daca1e102f3.tar.gz
CMake-2d81046ae20d1638927e89f5e0b78daca1e102f3.tar.bz2
ENH: Add support for special tracks, fix options of handlers so that the -R, -U, and so on work in the new style scripting
Diffstat (limited to 'Source/CTest/cmCTestGenericHandler.cxx')
-rw-r--r--Source/CTest/cmCTestGenericHandler.cxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestGenericHandler.cxx b/Source/CTest/cmCTestGenericHandler.cxx
index 4c39842..563c7b6 100644
--- a/Source/CTest/cmCTestGenericHandler.cxx
+++ b/Source/CTest/cmCTestGenericHandler.cxx
@@ -54,9 +54,37 @@ void cmCTestGenericHandler::SetOption(const char* op, const char* value)
}
//----------------------------------------------------------------------
+void cmCTestGenericHandler::SetPersistentOption(const char* op, const char* value)
+{
+ if ( !op )
+ {
+ return;
+ }
+ if ( !value )
+ {
+ cmCTestGenericHandler::t_StringToString::iterator remit
+ = this->PersistentOptions.find(op);
+ if ( remit != this->PersistentOptions.end() )
+ {
+ this->PersistentOptions.erase(remit);
+ }
+ return;
+ }
+
+ this->PersistentOptions[op] = value;
+}
+
+//----------------------------------------------------------------------
void cmCTestGenericHandler::Initialize()
{
this->Options.clear();
+ t_StringToString::iterator it;
+ for ( it = this->PersistentOptions.begin();
+ it != this->PersistentOptions.end();
+ ++ it )
+ {
+ this->Options[it->first.c_str()] = it->second.c_str();
+ }
}
//----------------------------------------------------------------------