Bluetooth: Host: CMake dependency for Mesh Bsim

Links host to mbedTLS library if Bluetooth Mesh is enabled, and
CONFIG_BT_TESTING=y.

Bluetooth Mesh has test dependencies in the host.
In order to compile Bsim tests with these test features
and PSA enabled, the libraries must be linked.

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
This commit is contained in:
Anders Storrø 2023-10-12 14:29:00 +02:00 committed by Carles Cufí
commit 0ce77c227b

View file

@ -123,3 +123,10 @@ if(CONFIG_BT_CONN_DISABLE_SECURITY)
Do not use in production."
)
endif()
# Bluetooth Mesh has test dependencies in the host.
# In order to compile Bsim tests with these test features
# and PSA enabled, the libraries must be linked.
if(CONFIG_BT_MESH AND CONFIG_BT_TESTING)
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
endif()