aboutsummaryrefslogtreecommitdiff
path: root/ports/ignition-cmake0/fix-find-ign-curl.patch
blob: 9189712d278f830b8b80275210044e7c5ad3d61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -r 3276aecbcbb4 -r 33b5d95affd2 cmake/FindIgnCURL.cmake
--- a/cmake/FindIgnCURL.cmake
+++ b/cmake/FindIgnCURL.cmake
@@ -46,6 +46,12 @@
 
   # Older versions of curl don't create imported targets, so we will create
   # them here if they have not been provided.
+  if(TARGET CURL::libcurl AND NOT TARGET curl::curl)
+    add_library(curl::curl INTERFACE IMPORTED)
+    set_target_properties(curl::curl PROPERTIES
+        INTERFACE_LINK_LIBRARIES CURL::libcurl)
+  endif()
+  
   include(IgnImportTarget)
 
   if(NOT TARGET curl::curl)