mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[vcpkg] Resolve --overlay-ports is only working for relative parths since fix… (#11302)
* Resolve --overlay-ports is only working for relative parths since fix for https://github.com/microsoft/vcpkg/issues/10771 Fixes https://github.com/microsoft/vcpkg/issues/11301 * use auto instead of fs::path
This commit is contained in:
parent
43579f3d7f
commit
06c647e11a
@ -35,7 +35,15 @@ namespace vcpkg::PortFileProvider
|
||||
{
|
||||
if (!overlay_path.empty())
|
||||
{
|
||||
auto overlay = fs.canonical(VCPKG_LINE_INFO, paths.original_cwd / fs::u8path(overlay_path));
|
||||
auto overlay = fs::u8path(overlay_path);
|
||||
if (overlay.is_absolute())
|
||||
{
|
||||
overlay = fs.canonical(VCPKG_LINE_INFO, overlay);
|
||||
}
|
||||
else
|
||||
{
|
||||
overlay = fs.canonical(VCPKG_LINE_INFO, paths.original_cwd / overlay);
|
||||
}
|
||||
|
||||
Debug::print("Using overlay: ", overlay.u8string(), "\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user