summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-08-29 17:50:51 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-08-29 17:50:51 (GMT)
commitb4b8f963917b9473be283d5b844faee4a018945d (patch)
treedec25dcc353be4dc79cd95786fc67528b8ec62e3 /Source/cmFindPackageCommand.cxx
parentcc955a042b582a12238cc94507bf50dd9bce1220 (diff)
downloadCMake-b4b8f963917b9473be283d5b844faee4a018945d.zip
CMake-b4b8f963917b9473be283d5b844faee4a018945d.tar.gz
CMake-b4b8f963917b9473be283d5b844faee4a018945d.tar.bz2
Don't create an empty element at the end of Foo_CONSIDERED_CONFIGS/VERSIONS
Alex
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 48122a8..8ee8fc7 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -935,10 +935,13 @@ bool cmFindPackageCommand::HandlePackageMode()
for(std::vector<ConfigFileInfo>::size_type i=0;
i<this->ConsideredConfigs.size(); i++)
{
+ if (i>0)
+ {
+ consideredConfigFiles += ";";
+ consideredVersions += ";";
+ }
consideredConfigFiles += this->ConsideredConfigs[i].filename;
- consideredConfigFiles += ";";
consideredVersions += this->ConsideredConfigs[i].version;
- consideredVersions += ";";
}
this->Makefile->AddDefinition(consideredConfigsVar.c_str(),