vcpkg/ports/wolftpm/cmake-patch.diff
2023-07-27 09:23:06 -07:00

17 lines
607 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b77a9df..0c45975 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -146,9 +146,9 @@ else()
target_compile_options(wolftpm PUBLIC ${WOLFSSL_CFLAGS_OTHER})
else()
# For support with vcpkg
- find_package(wolfssl CONFIG)
+ find_package(wolfssl CONFIG REQUIRED)
if (wolfssl_FOUND)
- target_link_libraries(wolftpm PUBLIC wolfssl)
+ target_link_libraries(wolftpm PUBLIC wolfssl::wolfssl)
else()
list(APPEND WOLFTPM_DEFINITIONS "-DWOLFTPM2_NO_WOLFCRYPT")
endif()