Build linux shared objects: the result is static libraries

I want to make shared objects libmbedcrypto.so libmbedtls.so and libmbedx509.so
I run the commands:

cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On -DUSE_STATIC_MBEDTLS_LIBRARY=Off -DENABLE_TESTING=Off .
make

And … I get static libraries libmbedcrypto.a, libmbedtls.a and libmbedx509.a.
Any ideas how to get shared objects?

Hi @aryeh
I have run the same commands you did, and got shared objects:

mbedtls$ find -name libmbedx509.so
./library/libmbedx509.so
mbedtls$ find -name libmbedcrypto.so
./crypto/library/libmbedcrypto.so
mbedtls$ find -name libmbedtls.so
./library/libmbedtls.so
mbedtls$ 

What is the Mbed TLS version you are using?
Regards,
Mbed TLS Support
Ron

2.16.2

Hi @aryeh
Thank you for your information.
I have downloaded the apache version from here and ran the same command, and I got shared objects:

mbedtls-2.16.2$ find -name *.so
./library/libmbedcrypto.so
./library/libmbedtls.so
./library/libmbedx509.so

I suggest you check your cmake environment
Regards