From b7b4f23c3826b3024d4c9606c9e9079eca75ab2e Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Wed, 27 Sep 2023 13:57:11 +0100 Subject: [PATCH] Add CMake include path for generated header Now that we are generating psa_crypto_driver_wrappers.h, we need to pass build/library as an include directory. Signed-off-by: David Horstmann --- library/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 65b957abfa..2b1fd43d15 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -323,7 +323,9 @@ foreach(target IN LISTS target_libraries) target_include_directories(${target} PUBLIC $ $ - PRIVATE ${MBEDTLS_DIR}/library/) + PRIVATE ${MBEDTLS_DIR}/library/ + # Needed to include psa_crypto_driver_wrappers.h + ${CMAKE_CURRENT_BINARY_DIR}) # Pass-through MBEDTLS_CONFIG_FILE and MBEDTLS_USER_CONFIG_FILE if(MBEDTLS_CONFIG_FILE) target_compile_definitions(${target}