From b4b8f963917b9473be283d5b844faee4a018945d Mon Sep 17 00:00:00 2001
From: Alex Neundorf <neundorf@kde.org>
Date: Sun, 29 Aug 2010 19:50:51 +0200
Subject: [PATCH] Don't create an empty element at the end of
 Foo_CONSIDERED_CONFIGS/VERSIONS

Alex
---
 Source/cmFindPackageCommand.cxx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 48122a85f..8ee8fc718 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(),