diff options
author | David Cole <david.cole@kitware.com> | 2011-11-01 18:26:16 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-11-01 18:26:16 (GMT) |
commit | e0d97b672875ab83e4e30ddd00746860e6e1fd87 (patch) | |
tree | 5b541dabbf4543d0ece42e5822f402a504078588 /Source/cmCTest.cxx | |
parent | 55eda4a06013fd4d09728a5a96edcc6fc4d1f988 (diff) | |
parent | 499c10457282f44d954c8a7385cbf9f8c82d1b08 (diff) | |
download | CMake-e0d97b672875ab83e4e30ddd00746860e6e1fd87.zip CMake-e0d97b672875ab83e4e30ddd00746860e6e1fd87.tar.gz CMake-e0d97b672875ab83e4e30ddd00746860e6e1fd87.tar.bz2 |
Merge topic 'fix-12383-clear-ctest-vecs'
499c104 CTest: Clear custom vectors before populating (#12383)
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index e2e171a..d6806aa 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -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); |