Skip to content

Commit

Permalink
[open3d] fix finding libcurl via CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 31, 2024
1 parent 8ca5908 commit 4bdd318
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions ports/open3d/0008-curl.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ index 025dbc664..0193d1fa3 100644

#include <curl/curl.h>
#include <curl/easy.h>
diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake
index cdb0f30ee..755895f66 100644
--- a/3rdparty/find_dependencies.cmake
+++ b/3rdparty/find_dependencies.cmake
@@ -847,8 +847,9 @@ endif()
# - openssl.cmake needs to be included before curl.cmake, for the
# BORINGSSL_ROOT_DIR variable.
if(USE_SYSTEM_CURL)
- open3d_pkg_config_3rdparty_library(3rdparty_curl
- SEARCH_ARGS libcurl
+ open3d_find_package_3rdparty_library(3rdparty_curl
+ PACKAGE CURL
+ TARGETS CURL::libcurl
)
if(NOT 3rdparty_curl_FOUND)
set(USE_SYSTEM_CURL OFF)
--
2.45.2

2 changes: 1 addition & 1 deletion versions/o-/open3d.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "5763912f09c5fccaebdd625c2fca84d28336aca9",
"git-tree": "a6ef2d9bb577906b4fc0d405c2791bcf3c6a2adc",
"version-semver": "0.18.0",
"port-version": 0
}
Expand Down

0 comments on commit 4bdd318

Please sign in to comment.