diff options
author | Yang Kun <91833768+ikspress@users.noreply.github.com> | 2024-08-21 21:58:47 +0800 |
---|---|---|
committer | Yang Kun <91833768+ikspress@users.noreply.github.com> | 2024-08-21 21:58:47 +0800 |
commit | 9a8d1ec81730b6aface3670b1c96375dca5af424 (patch) | |
tree | 229e904bb1636c98a593d71ca7614923fe7c28b2 /tls | |
parent | 3b545a08d6c14d67b6d1bead1e963391571b5182 (diff) | |
download | portable-9a8d1ec81730b6aface3670b1c96375dca5af424.tar.gz portable-9a8d1ec81730b6aface3670b1c96375dca5af424.tar.bz2 portable-9a8d1ec81730b6aface3670b1c96375dca5af424.zip |
Append version to dll on CMake
Diffstat (limited to '')
-rw-r--r-- | tls/CMakeLists.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index 919b1fa..e584dcb 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt | |||
@@ -58,15 +58,13 @@ endif() | |||
58 | 58 | ||
59 | export_symbol(tls ${CMAKE_CURRENT_BINARY_DIR}/tls.sym) | 59 | export_symbol(tls ${CMAKE_CURRENT_BINARY_DIR}/tls.sym) |
60 | target_link_libraries(tls ${OPENSSL_LIBS}) | 60 | target_link_libraries(tls ${OPENSSL_LIBS}) |
61 | if (WIN32) | ||
62 | set(TLS_POSTFIX -${TLS_MAJOR_VERSION} PARENT_SCOPE) | ||
63 | endif() | ||
64 | set_target_properties(tls PROPERTIES | 61 | set_target_properties(tls PROPERTIES |
65 | OUTPUT_NAME tls${TLS_POSTFIX} | 62 | OUTPUT_NAME tls |
66 | ARCHIVE_OUTPUT_NAME tls${TLS_POSTFIX} | 63 | ARCHIVE_OUTPUT_NAME tls |
67 | EXPORT_NAME TLS | 64 | EXPORT_NAME TLS |
68 | VERSION ${TLS_VERSION} | 65 | VERSION ${TLS_VERSION} |
69 | SOVERSION ${TLS_MAJOR_VERSION} | 66 | SOVERSION ${TLS_MAJOR_VERSION} |
67 | DLL_NAME_WITH_SOVERSION TRUE | ||
70 | ) | 68 | ) |
71 | 69 | ||
72 | target_include_directories( | 70 | target_include_directories( |