Skip to content

Commit

Permalink
Append version to dll on CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
ikspress committed Aug 21, 2024
1 parent 3b545a0 commit 9a8d1ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
8 changes: 3 additions & 5 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -860,15 +860,13 @@ add_library(crypto $<TARGET_OBJECTS:crypto_obj> $<TARGET_OBJECTS:compat_obj> emp

export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym)
target_link_libraries(crypto ${PLATFORM_LIBS})
if (WIN32)
set(CRYPTO_POSTFIX -${CRYPTO_MAJOR_VERSION} PARENT_SCOPE)
endif()
set_target_properties(crypto PROPERTIES
OUTPUT_NAME crypto${CRYPTO_POSTFIX}
ARCHIVE_OUTPUT_NAME crypto${CRYPTO_POSTFIX}
OUTPUT_NAME crypto
ARCHIVE_OUTPUT_NAME crypto
EXPORT_NAME Crypto
VERSION ${CRYPTO_VERSION}
SOVERSION ${CRYPTO_MAJOR_VERSION}
DLL_NAME_WITH_SOVERSION TRUE
)

target_include_directories(
Expand Down
8 changes: 3 additions & 5 deletions ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,13 @@ endif()

export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym)
target_link_libraries(ssl crypto ${PLATFORM_LIBS})
if (WIN32)
set(SSL_POSTFIX -${SSL_MAJOR_VERSION} PARENT_SCOPE)
endif()
set_target_properties(ssl PROPERTIES
OUTPUT_NAME ssl${SSL_POSTFIX}
ARCHIVE_OUTPUT_NAME ssl${SSL_POSTFIX}
OUTPUT_NAME ssl
ARCHIVE_OUTPUT_NAME ssl
EXPORT_NAME SSL
VERSION ${SSL_VERSION}
SOVERSION ${SSL_MAJOR_VERSION}
DLL_NAME_WITH_SOVERSION TRUE
)

target_include_directories(
Expand Down
8 changes: 3 additions & 5 deletions tls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ endif()

export_symbol(tls ${CMAKE_CURRENT_BINARY_DIR}/tls.sym)
target_link_libraries(tls ${OPENSSL_LIBS})
if (WIN32)
set(TLS_POSTFIX -${TLS_MAJOR_VERSION} PARENT_SCOPE)
endif()
set_target_properties(tls PROPERTIES
OUTPUT_NAME tls${TLS_POSTFIX}
ARCHIVE_OUTPUT_NAME tls${TLS_POSTFIX}
OUTPUT_NAME tls
ARCHIVE_OUTPUT_NAME tls
EXPORT_NAME TLS
VERSION ${TLS_VERSION}
SOVERSION ${TLS_MAJOR_VERSION}
DLL_NAME_WITH_SOVERSION TRUE
)

target_include_directories(
Expand Down

0 comments on commit 9a8d1ec

Please sign in to comment.