Skip to content

Commit

Permalink
[open3d] fix curl macro redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 29, 2024
1 parent 9ddc03b commit 933da63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ports/open3d/0008-curl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/cpp/open3d/utility/Download.cpp b/cpp/open3d/utility/Download.cpp
index 025dbc664..0193d1fa3 100644
--- a/cpp/open3d/utility/Download.cpp
+++ b/cpp/open3d/utility/Download.cpp
@@ -22,7 +22,9 @@
#define USE_OPENSSL
#endif

+#ifndef CURL_STATICLIB
#define CURL_STATICLIB
+#endif

#include <curl/curl.h>
#include <curl/easy.h>
--
2.45.2

1 change: 1 addition & 0 deletions ports/open3d/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ vcpkg_from_github(
0004-tiny_gltf.patch
0005-jsoncpp.patch
0007-parallelstl.patch
0008-curl.patch
# remove in the next release
6783.patch
6969.patch
Expand Down

0 comments on commit 933da63

Please sign in to comment.