summaryrefslogtreecommitdiffstats
path: root/Source/cmFindBase.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-05 13:38:24 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-05 13:38:24 (GMT)
commita2bfdf9542159dbaec9b295b824dbb3a2285f5ce (patch)
tree353a0372271ce220065f59371ceba4c1252b4774 /Source/cmFindBase.cxx
parentdc418875cfe7ea67482d3693477fdbeacde70f0b (diff)
downloadCMake-a2bfdf9542159dbaec9b295b824dbb3a2285f5ce.zip
CMake-a2bfdf9542159dbaec9b295b824dbb3a2285f5ce.tar.gz
CMake-a2bfdf9542159dbaec9b295b824dbb3a2285f5ce.tar.bz2
ENH: fix old style parsing of FIND commands and fix broken tests
Diffstat (limited to 'Source/cmFindBase.cxx')
-rw-r--r--Source/cmFindBase.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index d1d70bf..13c820e 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -138,7 +138,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
bool doingPaths = false;
bool doingPathSuf = false;
bool newStyle = false;
-
+
for (unsigned int j = 1; j < args.size(); ++j)
{
if(args[j] == "NAMES")
@@ -220,6 +220,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
// FIND_*(VAR name path1 path2 ...)
if(!newStyle)
{
+ this->Names.clear(); // clear out any values in Names
this->Names.push_back(args[1]);
for(unsigned int j = 2; j < args.size(); ++j)
{