Skip to content

Commit 4bdd318

Browse files
committed
[open3d] fix finding libcurl via CMake
1 parent 8ca5908 commit 4bdd318

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

ports/open3d/0008-curl.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ index 025dbc664..0193d1fa3 100644
1212

1313
#include <curl/curl.h>
1414
#include <curl/easy.h>
15+
diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake
16+
index cdb0f30ee..755895f66 100644
17+
--- a/3rdparty/find_dependencies.cmake
18+
+++ b/3rdparty/find_dependencies.cmake
19+
@@ -847,8 +847,9 @@ endif()
20+
# - openssl.cmake needs to be included before curl.cmake, for the
21+
# BORINGSSL_ROOT_DIR variable.
22+
if(USE_SYSTEM_CURL)
23+
- open3d_pkg_config_3rdparty_library(3rdparty_curl
24+
- SEARCH_ARGS libcurl
25+
+ open3d_find_package_3rdparty_library(3rdparty_curl
26+
+ PACKAGE CURL
27+
+ TARGETS CURL::libcurl
28+
)
29+
if(NOT 3rdparty_curl_FOUND)
30+
set(USE_SYSTEM_CURL OFF)
1531
--
1632
2.45.2
1733

versions/o-/open3d.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"versions": [
33
{
4-
"git-tree": "5763912f09c5fccaebdd625c2fca84d28336aca9",
4+
"git-tree": "a6ef2d9bb577906b4fc0d405c2791bcf3c6a2adc",
55
"version-semver": "0.18.0",
66
"port-version": 0
77
}

0 commit comments

Comments
 (0)