From c91f7104653013c16c224ebab02a81533600056e Mon Sep 17 00:00:00 2001 From: janbar Date: Mon, 2 Dec 2019 00:09:50 +0100 Subject: [PATCH] WINDOWS: rename output --- crypto/CMakeLists.txt | 8 ++++++++ ssl/CMakeLists.txt | 8 ++++++++ 2 files changed, 16 insertions(+) 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