Skip to content

Commit 86a9460

Browse files
committed
1
1 parent 6c9e460 commit 86a9460

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

cmake_modules/IcebergThirdpartyToolchain.cmake

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,6 @@ function(resolve_cpr_dependency)
279279

280280
fetchcontent_makeavailable(cpr)
281281

282-
if(TARGET cpr)
283-
get_target_property(CPR_DEPS cpr INTERFACE_LINK_LIBRARIES)
284-
message(FATAL_ERROR "DEBUG >>> 'cpr' target depends on the following libraries: ==> ${CPR_DEPS} <=="
285-
)
286-
else()
287-
message(FATAL_ERROR "DEBUG >>> Could not find 'cpr' target after FetchContent_MakeAvailable!"
288-
)
289-
endif()
290-
291282
if(cpr_SOURCE_DIR)
292283
set_target_properties(cpr PROPERTIES OUTPUT_NAME "iceberg_vendored_cpr"
293284
POSITION_INDEPENDENT_CODE ON)
@@ -298,13 +289,13 @@ function(resolve_cpr_dependency)
298289
ARCHIVE DESTINATION "${ICEBERG_INSTALL_LIBDIR}"
299290
LIBRARY DESTINATION "${ICEBERG_INSTALL_LIBDIR}")
300291

301-
if(TARGET curl-static)
302-
message(STATUS "Found vendored target 'curl-static', installing it.")
292+
if(TARGET libcurl)
293+
message(STATUS "Found vendored target 'libcurl', installing it.")
303294
install(TARGETS curl-static
304295
EXPORT iceberg_targets
305296
ARCHIVE DESTINATION "${ICEBERG_INSTALL_LIBDIR}")
306297
else()
307-
message(WARNING "Could not find vendored target 'curl-static' to install.")
298+
message(WARNING "Could not find vendored target 'libcurl' to install.")
308299
endif()
309300

310301
set(CPR_VENDORED TRUE)

0 commit comments

Comments
 (0)