File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -431,7 +431,9 @@ elseif (WITH_WOLFSSL_TREE)
431431 set (WOLFCRYPT_AVAILABLE ON )
432432else ()
433433 find_package (PkgConfig )
434- pkg_check_modules (WOLFSSL wolfssl )
434+ if (PkgConfig_FOUND)
435+ pkg_check_modules (WOLFSSL wolfssl )
436+ endif ()
435437
436438 if (WOLFSSL_FOUND)
437439 target_link_libraries (wolftpm_wolfssl_dep INTERFACE ${WOLFSSL_LIBRARIES} )
@@ -742,7 +744,7 @@ if(BUILD_WOLFTPM_LIB)
742744 # time to share wolfSSL include/link settings. It is intentionally NOT
743745 # installed/exported — downstream `find_package(wolftpm)` should only
744746 # see the real wolftpm target and discover wolfSSL via its own config.
745- install (TARGETS wolftpm
747+ install (TARGETS wolftpm wolftpm_wolfssl_dep
746748 EXPORT wolftpm-targets
747749 LIBRARY DESTINATION lib
748750 ARCHIVE DESTINATION lib
You can’t perform that action at this time.
0 commit comments