Add bcrypt library to fix C/C++ linking on Windows

This commit is contained in:
Oliver Hamlet
2022-01-23 22:18:03 +00:00
parent aa3dabab8d
commit 6127a7973a
+1 -1
View File
@@ -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}")