[vcpkg] Avoid duplication of targets in the CMake message (#6536)

This commit is contained in:
myd7349 2019-05-21 01:18:24 +08:00 committed by Curtis J Bezault
parent 2bec973d3a
commit ce2a6ed835

View File

@ -531,7 +531,9 @@ namespace vcpkg::Install
while (next != last)
{
auto match = *next;
library_targets[find_package_name].push_back(match[1]);
auto& targets = library_targets[find_package_name];
if (std::find(targets.cbegin(), targets.cend(), match[1]) == targets.cend())
targets.push_back(match[1]);
++next;
}
}