Skip to content

Commit 6c9e460

Browse files
committed
1
1 parent 421cca9 commit 6c9e460

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmake_modules/IcebergThirdpartyToolchain.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,15 @@ 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+
282291
if(cpr_SOURCE_DIR)
283292
set_target_properties(cpr PROPERTIES OUTPUT_NAME "iceberg_vendored_cpr"
284293
POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)