Merge branch 'contrib/github_pr_18121_v6.0' into 'release/v6.0'

Set CMake CACHE variables for mbedtls correctly (GitHub PR) (v6.0)

See merge request espressif/esp-idf!45178
This commit is contained in:
Mahavir Jain
2026-01-29 09:46:19 +05:30
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -124,11 +124,11 @@ if(CONFIG_MBEDTLS_CERTIFICATE_BUNDLE)
endif()
# Only build mbedtls libraries
set(ENABLE_TESTING CACHE BOOL OFF)
set(ENABLE_PROGRAMS CACHE BOOL OFF)
set(ENABLE_TESTING OFF CACHE BOOL "mbedtls: enable testing")
set(ENABLE_PROGRAMS OFF CACHE BOOL "mbedtls: enable programs")
# Use pre-generated source files in mbedtls repository
set(GEN_FILES CACHE BOOL OFF)
set(GEN_FILES OFF CACHE BOOL "mbedtls: use pre-generated source files")
# Make sure mbedtls finds the same Python interpreter as IDF uses
idf_build_get_property(python PYTHON)
@@ -19,11 +19,11 @@ idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES "${priv_requires}")
# Only build mbedtls libraries
set(ENABLE_TESTING CACHE BOOL OFF)
set(ENABLE_PROGRAMS CACHE BOOL OFF)
set(ENABLE_TESTING OFF CACHE BOOL "mbedtls: enable testing")
set(ENABLE_PROGRAMS OFF CACHE BOOL "mbedtls: enable programs")
# Use pre-generated source files in mbedtls repository
set(GEN_FILES CACHE BOOL OFF)
set(GEN_FILES OFF CACHE BOOL "mbedtls: use pre-generated source files")
# Needed to for include_next includes to work from within mbedtls
include_directories("${COMPONENT_DIR}/port/include")