diff --git a/components/mbedtls/CMakeLists.txt b/components/mbedtls/CMakeLists.txt index 1e692820554..c7b6ee10e37 100644 --- a/components/mbedtls/CMakeLists.txt +++ b/components/mbedtls/CMakeLists.txt @@ -225,7 +225,7 @@ if(NOT ${IDF_TARGET} STREQUAL "linux") ) target_link_libraries(tfpsacrypto PRIVATE "$<$:idf::nvs_flash>") # Define compile definition to indicate ESP-IDF PSA ITS implementation is available - target_compile_definitions(tfpsacrypto PRIVATE "$<$:ESP_PSA_ITS_AVAILABLE>") + target_compile_definitions(tfpsacrypto PUBLIC "$<$:ESP_PSA_ITS_AVAILABLE>") else() # For v1: check if component is in build before adding source and linking idf_build_get_property(build_components BUILD_COMPONENTS) @@ -233,7 +233,7 @@ if(NOT ${IDF_TARGET} STREQUAL "linux") target_sources(tfpsacrypto PRIVATE "${COMPONENT_DIR}/port/psa_crypto_storage/esp_psa_its.c") idf_component_get_property(nvs_flash_lib nvs_flash COMPONENT_LIB) target_link_libraries(tfpsacrypto PRIVATE ${nvs_flash_lib}) - target_compile_definitions(tfpsacrypto PRIVATE ESP_PSA_ITS_AVAILABLE) + target_compile_definitions(tfpsacrypto PUBLIC ESP_PSA_ITS_AVAILABLE) endif() endif() endif()