mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 15:58:59 +08:00
[vcpkg] Avoid duplication of targets in the CMake message (#6536)
This commit is contained in:
parent
2bec973d3a
commit
ce2a6ed835
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user