Skip to content

Commit

Permalink
#5628 Restore copying of SSL libs on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Nelless committed Sep 29, 2016
1 parent e18f8c6 commit 3b5940a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/lib/net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,30 @@ endif()

add_library(net STATIC ${sources})

if (WIN32)
add_custom_command(
TARGET net
POST_BUILD
COMMAND xcopy /Y /Q
..\\..\\..\\..\\lib\\${CMAKE_CFG_INTDIR}\\ns.*
..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\plugins\\
)
add_custom_command(
TARGET net
POST_BUILD
COMMAND xcopy /Y /Q
..\\..\\..\\..\\ext\\${OPENSSL_PLAT_DIR}\\out32dll\\libeay32.*
..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
)
add_custom_command(
TARGET net
POST_BUILD
COMMAND xcopy /Y /Q
..\\..\\..\\..\\ext\\${OPENSSL_PLAT_DIR}\\out32dll\\ssleay32.*
..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
)
endif()

if (UNIX)
target_link_libraries(net mt io)
endif()

0 comments on commit 3b5940a

Please sign in to comment.