Skip to content

Commit

Permalink
Add ntdll to link list
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Sep 13, 2023
1 parent 99cddc7 commit 6732f0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,6 @@ if(RUST_ENABLED)
set(RUSTFLAGS "${RUSTFLAGS} --print=native-static-libs")
# we need to specify a few extra libraries on Windows
find_library(BCRYPT bcrypt)
find_library(WS2_32 ws2_32)
find_library(ADVAPI32 advapi32)
find_library(NTDLL ntdll)
message(STATUS "bcrypt ${BCRYPT} ws2_32 ${WS2_32} advapi32 ${ADVAPI32} ntdll ${NTDLL}")
else()
Expand Down Expand Up @@ -808,7 +806,7 @@ target_link_libraries(SMHasher SMHasherSupport

if (RUST_ENABLED)
add_dependencies(SMHasher librust_hashes)
target_link_libraries(SMHasher ${RUST_LIB_PATH} ${BCRYPT} ${WS2_32})
target_link_libraries(SMHasher ${RUST_LIB_PATH} ${BCRYPT} ${NTDLL})
endif()

SET(exectargets ${exectargets} SMHasher)
Expand Down

0 comments on commit 6732f0c

Please sign in to comment.