diff --git a/components/mbedtls/CMakeLists.txt b/components/mbedtls/CMakeLists.txt index e87a2a5641..750c9077ef 100644 --- a/components/mbedtls/CMakeLists.txt +++ b/components/mbedtls/CMakeLists.txt @@ -355,7 +355,7 @@ if(CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN_CONSTANT_TIME_CM) mbedcrypto_optional_deps(esp_timer idf::esp_timer) endif() -# Link esp-cryptoauthlib to mbedtls +# Link esp-cryptoauthlib to mbedcrypto if(CONFIG_ATCA_MBEDTLS_ECDSA) - idf_component_optional_requires(PRIVATE espressif__esp-cryptoauthlib esp-cryptoauthlib) + mbedcrypto_optional_deps(espressif__esp-cryptoauthlib esp-cryptoauthlib) endif()