mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
fix small bug in find_from_PATH (which prevents from using already installed tool) (#3904)
This commit is contained in:
parent
cc89413fd1
commit
1f4dde2b22
@ -263,7 +263,7 @@ namespace vcpkg::Files
|
||||
for (auto&& ext : EXTS)
|
||||
{
|
||||
auto p = fs::u8path(base + ext.c_str());
|
||||
if (Util::find(ret, p) != ret.end() && this->exists(p))
|
||||
if (Util::find(ret, p) == ret.end() && this->exists(p))
|
||||
{
|
||||
ret.push_back(p);
|
||||
Debug::println("Found path: %s", p.u8string());
|
||||
|
Loading…
Reference in New Issue
Block a user