mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 09:35:39 +00:00
cmake: link programs that only use x509 with libmbedx509
When building with CMake, for sample programs that only use functionality in libmbedcrypto and libmbedx509, link with libmbedx509, not with libmbedtls. cert_app makes a TLS connection, so do link it with libmbedtls.
This commit is contained in:
parent
e123395317
commit
e732f04443
|
@ -1,5 +1,5 @@
|
||||||
set(libs
|
set(libs
|
||||||
mbedtls
|
mbedx509
|
||||||
)
|
)
|
||||||
|
|
||||||
if(USE_PKCS11_HELPER_LIBRARY)
|
if(USE_PKCS11_HELPER_LIBRARY)
|
||||||
|
@ -11,7 +11,7 @@ if(ENABLE_ZLIB_SUPPORT)
|
||||||
endif(ENABLE_ZLIB_SUPPORT)
|
endif(ENABLE_ZLIB_SUPPORT)
|
||||||
|
|
||||||
add_executable(cert_app cert_app.c)
|
add_executable(cert_app cert_app.c)
|
||||||
target_link_libraries(cert_app ${libs})
|
target_link_libraries(cert_app ${libs} mbedtls)
|
||||||
|
|
||||||
add_executable(crl_app crl_app.c)
|
add_executable(crl_app crl_app.c)
|
||||||
target_link_libraries(crl_app ${libs})
|
target_link_libraries(crl_app ${libs})
|
||||||
|
|
Loading…
Reference in a new issue