mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-12 21:14:54 +08:00
CMake: fix build with 3rdparty module enabled through a custom config
Fixes #8165 Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
da635ab657
commit
66a868b6af
4
3rdparty/CMakeLists.txt
vendored
4
3rdparty/CMakeLists.txt
vendored
@ -4,11 +4,7 @@ list (APPEND thirdparty_inc_public)
|
|||||||
list (APPEND thirdparty_inc)
|
list (APPEND thirdparty_inc)
|
||||||
list (APPEND thirdparty_def)
|
list (APPEND thirdparty_def)
|
||||||
|
|
||||||
execute_process(COMMAND ${MBEDTLS_PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/config.py -f ${CMAKE_CURRENT_SOURCE_DIR}/../include/mbedtls/config.h get MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED RESULT_VARIABLE result)
|
|
||||||
|
|
||||||
if(${result} EQUAL 0)
|
|
||||||
add_subdirectory(everest)
|
add_subdirectory(everest)
|
||||||
endif()
|
|
||||||
|
|
||||||
set(thirdparty_src ${thirdparty_src} PARENT_SCOPE)
|
set(thirdparty_src ${thirdparty_src} PARENT_SCOPE)
|
||||||
set(thirdparty_lib ${thirdparty_lib} PARENT_SCOPE)
|
set(thirdparty_lib ${thirdparty_lib} PARENT_SCOPE)
|
||||||
|
3
ChangeLog.d/fix-cmake-3rdparty-custom-config.txt
Normal file
3
ChangeLog.d/fix-cmake-3rdparty-custom-config.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Bugfix
|
||||||
|
* Fix the build with CMake when Everest is enabled through
|
||||||
|
a user configuration file or the compiler command line. Fixes #8165.
|
Loading…
x
Reference in New Issue
Block a user