diff options
-rw-r--r-- | src/buildtool/file_system/file_system_manager.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/buildtool/file_system/file_system_manager.hpp b/src/buildtool/file_system/file_system_manager.hpp index 6cf8f256..514fadd2 100644 --- a/src/buildtool/file_system/file_system_manager.hpp +++ b/src/buildtool/file_system/file_system_manager.hpp @@ -418,11 +418,11 @@ class FileSystemManager { dst.string()); return false; } - std::filesystem::copy(src, - dst, - recursively - ? std::filesystem::copy_options::recursive - : std::filesystem::copy_options::none); + auto const opts = + std::filesystem::copy_options::copy_symlinks | + (recursively ? std::filesystem::copy_options::recursive + : std::filesystem::copy_options::none); + std::filesystem::copy(src, dst, opts); return true; } catch (std::exception const& e) { Logger::Log(LogLevel::Error, |