Merge topic 'fix-12383-clear-ctest-vecs'

499c104 CTest: Clear custom vectors before populating (#12383)
This commit is contained in:
David Cole 2011-11-01 14:26:16 -04:00 committed by CMake Topic Stage
commit e0d97b6728
1 changed files with 2 additions and 0 deletions

View File

@ -2526,6 +2526,8 @@ void cmCTest::PopulateCustomVector(cmMakefile* mf, const char* def,
cmSystemTools::ExpandListArgument(dval, slist);
std::vector<std::string>::iterator it;
vec.clear();
for ( it = slist.begin(); it != slist.end(); ++it )
{
cmCTestLog(this, DEBUG, " -- " << it->c_str() << std::endl);