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:
parent
ea63d3e4ec
commit
e94b19031f
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue