Skip to content

Commit

Permalink
Use standard filesystem instead of experimental for Clang on macOS (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
errissa authored Aug 18, 2023
1 parent c7718fd commit 59792c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpp/open3d/utility/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
#endif
#ifdef __APPLE__
// CMAKE_OSX_DEPLOYMENT_TARGET "10.15" or newer
#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM
#endif
#include <filesystem>
namespace fs = std::__fs::filesystem;
#else
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#endif

#include "open3d/utility/Logging.h"

Expand Down

0 comments on commit 59792c2

Please sign in to comment.