mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 19:17:55 +08:00
17 lines
607 B
Diff
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()
|