From 6127a7973a3a5783ae8f4ccdbdd8c754b3230662 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 23 Jan 2022 22:18:03 +0000 Subject: [PATCH] Add bcrypt library to fix C/C++ linking on Windows --- ffi/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffi/CMakeLists.txt b/ffi/CMakeLists.txt index 9a19547..f89d268 100644 --- a/ffi/CMakeLists.txt +++ b/ffi/CMakeLists.txt @@ -10,7 +10,7 @@ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") endif () if (MSVC) - set (SYSTEM_LIBS ws2_32 Userenv) + set (SYSTEM_LIBS ws2_32 Userenv bcrypt) endif () set (FFI_LIBRARY "${CMAKE_SOURCE_DIR}/../target/debug/${CMAKE_STATIC_LIBRARY_PREFIX}loot_condition_interpreter_ffi${CMAKE_STATIC_LIBRARY_SUFFIX}")