mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(cmake): Set CACHE variables correctly
The syntax for setting cache variables is actually set(<variable> <value> CACHE <type> <docstring>) and not set(<variable> CACHE <type> <value>). The previous code silently set the variables to the empty string.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user