1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

CMakeLists.txt: when using libsecp256k1 on windows we need to link with bcrypt.lib

This commit is contained in:
Henrik Hautakoski 2023-03-22 18:53:33 +01:00
parent ea63d3e4ec
commit e94b19031f

View file

@ -86,6 +86,12 @@ if (${EC_LIB} STREQUAL "libsecp256k1")
src/libsecp256k1/ecdsa.cpp
)
# Need to link to bcrypt on windows as BCryptGenRandom is
# used by fill_random in src/libsecp256k1/rng.h
if (WIN32)
target_link_libraries( ${LIB_NAME} PRIVATE "bcrypt.lib" )
endif (WIN32)
elseif (${EC_LIB} STREQUAL "openssl")
target_sources( ${LIB_NAME} PRIVATE
src/openssl/ec.cpp