[vcpkg] Fix toolsrc CMake build error (#10973)

This commit is contained in:
NancyLi1013 2020-04-24 05:07:12 +08:00 committed by GitHub
parent cd992c4cbb
commit 6709d3d7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -717,9 +717,9 @@ namespace vcpkg::Files
virtual fs::path absolute(const fs::path& path, std::error_code& ec) const override
{
#if USE_STD_FILESYSTEM
#if VCPKG_USE_STD_FILESYSTEM
return fs::stdfs::absolute(path, ec);
#else // ^^^ USE_STD_FILESYSTEM / !USE_STD_FILESYSTEM vvv
#else // ^^^ VCPKG_USE_STD_FILESYSTEM / !VCPKG_USE_STD_FILESYSTEM vvv
#if _WIN32
// absolute was called system_complete in experimental filesystem
return fs::stdfs::system_complete(path, ec);