#5628 Restore copying of SSL libs on Windows
This commit is contained in:
parent
e18f8c62e7
commit
3b5940ac18
|
@ -34,6 +34,30 @@ endif()
|
||||||
|
|
||||||
add_library(net STATIC ${sources})
|
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)
|
if (UNIX)
|
||||||
target_link_libraries(net mt io)
|
target_link_libraries(net mt io)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue