mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 23:57:46 +00:00
[cmake] fix build with external mbedTLS (#4696)
`mbedcrypto` target is only available when `OT_BUILTIN_MBEDTLS` is set, therefore linking it unconditionally when external mbed TLS instance is used results in a linking error. Signed-off-by: Robert Lubos <[email protected]>
This commit is contained in:
+10
-8
@@ -233,12 +233,14 @@ target_sources(openthread-radio PRIVATE
|
||||
utils/parse_cmdline.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(openthread-ftd
|
||||
PUBLIC
|
||||
mbedcrypto
|
||||
)
|
||||
if(OT_BUILTIN_MBEDTLS)
|
||||
target_link_libraries(openthread-ftd
|
||||
PUBLIC
|
||||
mbedcrypto
|
||||
)
|
||||
|
||||
target_link_libraries(openthread-mtd
|
||||
PUBLIC
|
||||
mbedcrypto
|
||||
)
|
||||
target_link_libraries(openthread-mtd
|
||||
PUBLIC
|
||||
mbedcrypto
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user