From 6709d3d7d0cba96508ba3606f810ab562ea32556 Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Fri, 24 Apr 2020 05:07:12 +0800 Subject: [PATCH] [vcpkg] Fix toolsrc CMake build error (#10973) --- toolsrc/src/vcpkg/base/files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp index 71cc7275a..a364e8178 100644 --- a/toolsrc/src/vcpkg/base/files.cpp +++ b/toolsrc/src/vcpkg/base/files.cpp @@ -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);