vcpkg/ports/wolftpm/cmake-patch.diff

17 lines
607 B
Diff
Raw Normal View History

2023-07-28 00:23:06 +08:00
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()