Skip to content

Commit 3ea7c4f

Browse files
committed
add  curl
1 parent 12463d6 commit 3ea7c4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmake_modules/IcebergThirdpartyToolchain.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,16 @@ function(resolve_cpr_dependency)
273273
RUNTIME DESTINATION "${ICEBERG_INSTALL_BINDIR}"
274274
ARCHIVE DESTINATION "${ICEBERG_INSTALL_LIBDIR}"
275275
LIBRARY DESTINATION "${ICEBERG_INSTALL_LIBDIR}")
276+
277+
if(TARGET curl-static)
278+
message(STATUS "Found vendored target 'curl-static', installing it.")
279+
install(TARGETS curl-static
280+
EXPORT iceberg_targets
281+
ARCHIVE DESTINATION "${ICEBERG_INSTALL_LIBDIR}")
282+
else()
283+
message(WARNING "Could not find vendored target 'curl-static' to install.")
284+
endif()
285+
276286
set(CPR_VENDORED TRUE)
277287
else()
278288
set(CPR_VENDORED FALSE)

0 commit comments

Comments
 (0)