diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 3717f51..ef01d23 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -274,6 +274,14 @@ if( ANDROID ) set_target_properties( crypto PROPERTIES OUTPUT_NAME "crypto_1_1" ) endif() +if( MSVC ) + if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) + set_target_properties( crypto PROPERTIES OUTPUT_NAME "crypto-1_1-x64" ) + elseif( CMAKE_SIZEOF_VOID_P EQUAL 4 ) + set_target_properties( crypto PROPERTIES OUTPUT_NAME "crypto-1_1" ) + endif() +endif() + install( TARGETS crypto RUNTIME DESTINATION bin LIBRARY DESTINATION lib diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 2a0a3ad..dc0be28 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt @@ -50,6 +50,14 @@ if( ANDROID ) set_target_properties( ssl PROPERTIES OUTPUT_NAME "ssl_1_1" ) endif() +if( MSVC ) + if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) + set_target_properties( ssl PROPERTIES OUTPUT_NAME "ssl-1_1-x64" ) + elseif( CMAKE_SIZEOF_VOID_P EQUAL 4 ) + set_target_properties( ssl PROPERTIES OUTPUT_NAME "ssl-1_1" ) + endif() +endif() + install( TARGETS ssl RUNTIME DESTINATION bin LIBRARY DESTINATION lib