Skip to content

Commit 7db947e

Browse files
committed
cmake stuff
1 parent 2e602ce commit 7db947e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Test/CMakeLists.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ if(${BUILD_SHARED_LIBS})
3737
$<TARGET_FILE:websocket_lite>
3838
$<TARGET_FILE_DIR:${PROJECT_NAME}>)
3939
if(WIN32)
40+
find_library(libeay32 libeay32)
4041
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
41-
COMMAND ${CMAKE_COMMAND} -E copy_if_different
42-
$<TARGET_FILE:${ZLIB_LIBRARIES}>
43-
$<TARGET_FILE_DIR:${PROJECT_NAME}>)
42+
COMMAND ${CMAKE_COMMAND} -E copy_if_different
43+
${libeay32}
44+
$<TARGET_FILE_DIR:${PROJECT_NAME}>)
45+
find_library(ssleay32 libeay32)
4446
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
45-
COMMAND ${CMAKE_COMMAND} -E copy_if_different
46-
$<TARGET_FILE:${OPENSSL_LIBRARIES}>
47-
$<TARGET_FILE_DIR:${PROJECT_NAME}>)
48-
47+
COMMAND ${CMAKE_COMMAND} -E copy_if_different
48+
${ssleay32}
49+
$<TARGET_FILE_DIR:${PROJECT_NAME}>)
4950
endif()
5051
endif()
5152

0 commit comments

Comments
 (0)