TLS target properties when building static libs

This commit is contained in:
Dan Nestor 2020-03-02 11:44:04 +01:00 committed by GitHub
parent 3e645e1ba2
commit b10a3363df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,18 +37,16 @@ target_include_directories(tls
PUBLIC PUBLIC
../include) ../include)
if (BUILD_SHARED_LIBS) export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym)
export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym) target_link_libraries(tls ssl crypto ${PLATFORM_LIBS})
target_link_libraries(tls ssl crypto ${PLATFORM_LIBS}) if (WIN32)
if (WIN32) set(TLS_POSTFIX -${TLS_MAJOR_VERSION})
set(TLS_POSTFIX -${TLS_MAJOR_VERSION})
endif()
set_target_properties(tls PROPERTIES
OUTPUT_NAME tls${TLS_POSTFIX}
ARCHIVE_OUTPUT_NAME tls${TLS_POSTFIX})
set_target_properties(tls PROPERTIES VERSION ${TLS_VERSION}
SOVERSION ${TLS_MAJOR_VERSION})
endif() endif()
set_target_properties(tls PROPERTIES
OUTPUT_NAME tls${TLS_POSTFIX}
ARCHIVE_OUTPUT_NAME tls${TLS_POSTFIX})
set_target_properties(tls PROPERTIES VERSION ${TLS_VERSION}
SOVERSION ${TLS_MAJOR_VERSION})
if(ENABLE_LIBRESSL_INSTALL) if(ENABLE_LIBRESSL_INSTALL)
install( install(