diff options
| author | Dan Nestor <dandrestor@gmail.com> | 2020-03-02 11:43:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 11:43:27 +0100 |
| commit | 3e645e1ba26e3222d94b368e98f3938995128e46 (patch) | |
| tree | 200cac9cb0b170dea1c7501ccf6dd8a18d9bc2d2 | |
| parent | 14dd93c37a2a38dee7b8d2e0b823b0e0cc21e8d4 (diff) | |
| download | portable-3e645e1ba26e3222d94b368e98f3938995128e46.tar.gz portable-3e645e1ba26e3222d94b368e98f3938995128e46.tar.bz2 portable-3e645e1ba26e3222d94b368e98f3938995128e46.zip | |
SSL target properties when building static libs
| -rw-r--r-- | ssl/CMakeLists.txt | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 3e72129..40fdd2d 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
| @@ -61,18 +61,16 @@ target_include_directories(ssl | |||
| 61 | PUBLIC | 61 | PUBLIC |
| 62 | ../include) | 62 | ../include) |
| 63 | 63 | ||
| 64 | if (BUILD_SHARED_LIBS) | 64 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) |
| 65 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) | 65 | target_link_libraries(ssl crypto ${PLATFORM_LIBS}) |
| 66 | target_link_libraries(ssl crypto ${PLATFORM_LIBS}) | 66 | if (WIN32) |
| 67 | if (WIN32) | 67 | set(SSL_POSTFIX -${SSL_MAJOR_VERSION}) |
| 68 | set(SSL_POSTFIX -${SSL_MAJOR_VERSION}) | ||
| 69 | endif() | ||
| 70 | set_target_properties(ssl PROPERTIES | ||
| 71 | OUTPUT_NAME ssl${SSL_POSTFIX} | ||
| 72 | ARCHIVE_OUTPUT_NAME ssl${SSL_POSTFIX}) | ||
| 73 | set_target_properties(ssl PROPERTIES VERSION ${SSL_VERSION} | ||
| 74 | SOVERSION ${SSL_MAJOR_VERSION}) | ||
| 75 | endif() | 68 | endif() |
| 69 | set_target_properties(ssl PROPERTIES | ||
| 70 | OUTPUT_NAME ssl${SSL_POSTFIX} | ||
| 71 | ARCHIVE_OUTPUT_NAME ssl${SSL_POSTFIX}) | ||
| 72 | set_target_properties(ssl PROPERTIES VERSION ${SSL_VERSION} | ||
| 73 | SOVERSION ${SSL_MAJOR_VERSION}) | ||
| 76 | 74 | ||
| 77 | if(ENABLE_LIBRESSL_INSTALL) | 75 | if(ENABLE_LIBRESSL_INSTALL) |
| 78 | install( | 76 | install( |
