Skip to content

Commit

Permalink
build: add lib for crypto and ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Jul 3, 2023
1 parent 087995e commit a5b04c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ if (BUILD_STATIC_LIBS)
TARGET_C_PROPERTIES (${HDF5_LIB_TARGET} STATIC)
target_link_libraries (${HDF5_LIB_TARGET}
PRIVATE ${LINK_LIBS} ${LINK_COMP_LIBS}
PUBLIC "$<$<NOT:$<PLATFORM_ID:Windows>>:${CMAKE_DL_LIBS}>" "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:MPI::MPI_C>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:CURL::libcurl>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::crypto>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::ssl>"
PUBLIC "$<$<NOT:$<PLATFORM_ID:Windows>>:${CMAKE_DL_LIBS}>" "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:MPI::MPI_C>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:CURL::libcurl>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::libcrypto>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::libssl>"
)
if (NOT WIN32)
target_link_libraries (${HDF5_LIB_TARGET}
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (BUILD_STATIC_LIBS)
)
TARGET_C_PROPERTIES (${HDF5_TEST_LIB_TARGET} STATIC)
target_link_libraries (${HDF5_TEST_LIB_TARGET}
PUBLIC ${LINK_LIBS} ${HDF5_LIB_TARGET} "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:CURL::libcurl>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::crypto>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::ssl>"
PUBLIC ${LINK_LIBS} ${HDF5_LIB_TARGET} "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:CURL::libcurl>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::libcrypto>" "$<$<BOOL:${HDF5_ENABLE_ROS3_VFD}>:OpenSSL::libssl>"
PRIVATE "$<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib>"
)
if (MINGW)
Expand Down

0 comments on commit a5b04c0

Please sign in to comment.