diff --git a/src/vcpkg/tools.cpp b/src/vcpkg/tools.cpp index dddcc6487b..d9fbc9bed3 100644 --- a/src/vcpkg/tools.cpp +++ b/src/vcpkg/tools.cpp @@ -399,7 +399,8 @@ namespace vcpkg { // the cmake version from mysys and cygwin can not be used because that version can't handle 'C:' in paths auto path = exe_path.generic_u8string(); - return !Strings::ends_with(path, "/usr/bin") && !Strings::ends_with(path, "/cygwin64/bin"); + return !Strings::ends_with(path, "/usr/bin") && !Strings::ends_with(path, "/cygwin64/bin") && + path.find("/msys64/") == std::string::npos; } #endif