fix to limit cmake wolftpm_wolfssl_dep export

pull/495/head
JacobBarthelmeh 2026-04-27 16:06:43 -06:00
parent 3bf81baede
commit ee41a056f5
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ endif()
# of wolftpm's export set (it is build-tree-only). Downstream consumers of
# wolftpm should `find_package(wolfssl)` themselves before find_package(wolftpm).
if(BUILD_WOLFTPM_LIB)
target_link_libraries(wolftpm PRIVATE wolftpm_wolfssl_dep)
target_link_libraries(wolftpm PRIVATE $<BUILD_INTERFACE:wolftpm_wolfssl_dep>)
endif()
# fwTPM requires wolfCrypt