1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Merge pull request #5721 from tom-cosgrove-arm/roneld-1805-2.28

Backport 2.28: Fix Shared Library compilation issue with Cmake
This commit is contained in:
Manuel Pégourié-Gonnard
2022-04-11 09:31:21 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,7 @@ if(USE_STATIC_MBEDTLS_LIBRARY)
endif(USE_STATIC_MBEDTLS_LIBRARY)
if(USE_SHARED_MBEDTLS_LIBRARY)
set(CMAKE_LIBRARY_PATH ${CMAKE_CURRENT_BINARY_DIR})
add_library(${mbedcrypto_target} SHARED ${src_crypto})
set_target_properties(${mbedcrypto_target} PROPERTIES VERSION 2.28.0 SOVERSION 7)
target_link_libraries(${mbedcrypto_target} PUBLIC ${libs})