aboutsummaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorDan Nestor <dandrestor@gmail.com>2020-03-02 11:43:27 +0100
committerGitHub <noreply@github.com>2020-03-02 11:43:27 +0100
commit3e645e1ba26e3222d94b368e98f3938995128e46 (patch)
tree200cac9cb0b170dea1c7501ccf6dd8a18d9bc2d2 /ssl
parent14dd93c37a2a38dee7b8d2e0b823b0e0cc21e8d4 (diff)
downloadportable-3e645e1ba26e3222d94b368e98f3938995128e46.tar.gz
portable-3e645e1ba26e3222d94b368e98f3938995128e46.tar.bz2
portable-3e645e1ba26e3222d94b368e98f3938995128e46.zip
SSL target properties when building static libs
Diffstat (limited to 'ssl')
-rw-r--r--ssl/CMakeLists.txt20
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
64if (BUILD_SHARED_LIBS) 64export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym)
65 export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) 65target_link_libraries(ssl crypto ${PLATFORM_LIBS})
66 target_link_libraries(ssl crypto ${PLATFORM_LIBS}) 66if (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})
75endif() 68endif()
69set_target_properties(ssl PROPERTIES
70 OUTPUT_NAME ssl${SSL_POSTFIX}
71 ARCHIVE_OUTPUT_NAME ssl${SSL_POSTFIX})
72set_target_properties(ssl PROPERTIES VERSION ${SSL_VERSION}
73 SOVERSION ${SSL_MAJOR_VERSION})
76 74
77if(ENABLE_LIBRESSL_INSTALL) 75if(ENABLE_LIBRESSL_INSTALL)
78 install( 76 install(