This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5628 Restore copying of SSL libs on Windows

  • Loading branch information...
nlyan committed Sep 27, 2016
1 parent e18f8c6 commit 3b5940ac185d1c38133e113535f3dc2413f76e40
Showing with 24 additions and 0 deletions.
  1. +24 −0 src/lib/net/CMakeLists.txt
View
@@ -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.