From 59792c226f358131eedb51658ae01de24dc50c5a Mon Sep 17 00:00:00 2001 From: Rene Date: Fri, 18 Aug 2023 00:51:13 -0400 Subject: [PATCH] Use standard filesystem instead of experimental for Clang on macOS (#6320) --- cpp/open3d/utility/FileSystem.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cpp/open3d/utility/FileSystem.cpp b/cpp/open3d/utility/FileSystem.cpp index 5a2ce2748cc..98ff4926f2b 100644 --- a/cpp/open3d/utility/FileSystem.cpp +++ b/cpp/open3d/utility/FileSystem.cpp @@ -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 +namespace fs = std::__fs::filesystem; +#else #include namespace fs = std::experimental::filesystem; +#endif #include "open3d/utility/Logging.h"