Skip to content

Commit

Permalink
test(communication): fix linux build error
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Apr 26, 2020
1 parent 8a26c6b commit 90319f2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions framework/tests/communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ target_include_directories(communicationTest PRIVATE
)

target_link_directories(communicationTest PRIVATE ${COMMON_LIB_DIR})

if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
target_link_libraries(communicationTest PUBLIC
bcrypt
)
else ()
target_link_libraries(communicationTest PUBLIC
z
dl
)
endif ()
if (APPLE)
target_link_libraries(
communicationTest PUBLIC
Expand Down

0 comments on commit 90319f2

Please sign in to comment.