diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-08-29 17:50:51 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-08-29 17:50:51 (GMT) |
commit | b4b8f963917b9473be283d5b844faee4a018945d (patch) | |
tree | dec25dcc353be4dc79cd95786fc67528b8ec62e3 | |
parent | cc955a042b582a12238cc94507bf50dd9bce1220 (diff) | |
download | CMake-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
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 7 |
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(), |