Fix Windows FFI build

Looks like the Rust standard library now links against ntdll too.
This commit is contained in:
Oliver Hamlet
2023-06-25 14:22:52 +01:00
parent 3f05d6ad8a
commit 2b95f26727
+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 bcrypt)
set (SYSTEM_LIBS ntdll 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}")