Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions gloo/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(OpenSSL 1.1.1 REQUIRED EXACT)
find_package(OpenSSL 1.1.1 EXACT)

set(GLOO_TEST_SRCS
"${CMAKE_CURRENT_SOURCE_DIR}/allgather_test.cc"
Expand All @@ -13,7 +13,6 @@ set(GLOO_TEST_SRCS
"${CMAKE_CURRENT_SOURCE_DIR}/gatherv_test.cc"
"${CMAKE_CURRENT_SOURCE_DIR}/main.cc"
"${CMAKE_CURRENT_SOURCE_DIR}/memory_test.cc"
"${CMAKE_CURRENT_SOURCE_DIR}/openssl_utils.cc"
"${CMAKE_CURRENT_SOURCE_DIR}/reduce_test.cc"
"${CMAKE_CURRENT_SOURCE_DIR}/send_recv_test.cc"
)
Expand All @@ -29,8 +28,16 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
list(APPEND GLOO_TEST_LIBRARIES rt)
endif()

if(${OpenSSL_FOUND})
list(APPEND GLOO_TEST_SRCS
"${CMAKE_CURRENT_SOURCE_DIR}/openssl_utils.cc"
)
list(APPEND GLOO_TEST_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
endif()


add_executable(gloo_test ${GLOO_TEST_SRCS})
target_link_libraries(gloo_test gloo gtest ${GLOO_TEST_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(gloo_test gloo gtest ${GLOO_TEST_LIBRARIES})

if(MSVC AND USE_LIBUV)
add_custom_command(TARGET gloo_test POST_BUILD
Expand Down
Loading