diff options
author | Dan Nestor <dandrestor@gmail.com> | 2020-03-02 11:44:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 11:44:04 +0100 |
commit | b10a3363df2b78fb7758a3a8b15434a5ba92eeb9 (patch) | |
tree | f330735468ea83b3362fb53fc7c49697a56ca7ba | |
parent | 3e645e1ba26e3222d94b368e98f3938995128e46 (diff) | |
download | portable-b10a3363df2b78fb7758a3a8b15434a5ba92eeb9.tar.gz portable-b10a3363df2b78fb7758a3a8b15434a5ba92eeb9.tar.bz2 portable-b10a3363df2b78fb7758a3a8b15434a5ba92eeb9.zip |
TLS target properties when building static libs
-rw-r--r-- | tls/CMakeLists.txt | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index bac3afd..f64b1c3 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt | |||
@@ -37,18 +37,16 @@ target_include_directories(tls | |||
37 | PUBLIC | 37 | PUBLIC |
38 | ../include) | 38 | ../include) |
39 | 39 | ||
40 | if (BUILD_SHARED_LIBS) | 40 | export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym) |
41 | export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym) | 41 | target_link_libraries(tls ssl crypto ${PLATFORM_LIBS}) |
42 | target_link_libraries(tls ssl crypto ${PLATFORM_LIBS}) | 42 | if (WIN32) |
43 | if (WIN32) | 43 | set(TLS_POSTFIX -${TLS_MAJOR_VERSION}) |
44 | set(TLS_POSTFIX -${TLS_MAJOR_VERSION}) | ||
45 | endif() | ||
46 | set_target_properties(tls PROPERTIES | ||
47 | OUTPUT_NAME tls${TLS_POSTFIX} | ||
48 | ARCHIVE_OUTPUT_NAME tls${TLS_POSTFIX}) | ||
49 | set_target_properties(tls PROPERTIES VERSION ${TLS_VERSION} | ||
50 | SOVERSION ${TLS_MAJOR_VERSION}) | ||
51 | endif() | 44 | endif() |
45 | set_target_properties(tls PROPERTIES | ||
46 | OUTPUT_NAME tls${TLS_POSTFIX} | ||
47 | ARCHIVE_OUTPUT_NAME tls${TLS_POSTFIX}) | ||
48 | set_target_properties(tls PROPERTIES VERSION ${TLS_VERSION} | ||
49 | SOVERSION ${TLS_MAJOR_VERSION}) | ||
52 | 50 | ||
53 | if(ENABLE_LIBRESSL_INSTALL) | 51 | if(ENABLE_LIBRESSL_INSTALL) |
54 | install( | 52 | install( |