Fix the shared library build with CMake

Fix an error in the earlier merge.
This commit is contained in:
Gilles Peskine 2020-03-10 11:23:05 +01:00
parent 55d5353b3a
commit 0a968f7c7f

View file

@ -204,14 +204,6 @@ if(USE_SHARED_MBEDTLS_LIBRARY)
target_include_directories(mbedtls
PUBLIC ${MBEDTLS_DIR}/include/)
add_library(mbedx509 SHARED ${src_x509})
set_target_properties(mbedx509 PROPERTIES VERSION 2.16.0 SOVERSION 0)
target_link_libraries(mbedx509 ${libs} mbedcrypto)
add_library(mbedtls SHARED ${src_tls})
set_target_properties(mbedtls PROPERTIES VERSION 2.16.0 SOVERSION 12)
target_link_libraries(mbedtls ${libs} mbedx509)
install(TARGETS mbedtls mbedx509 mbedcrypto
DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)