mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-07-03 23:13:40 +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
|
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")
|
elseif (${EC_LIB} STREQUAL "openssl")
|
||||||
target_sources( ${LIB_NAME} PRIVATE
|
target_sources( ${LIB_NAME} PRIVATE
|
||||||
src/openssl/ec.cpp
|
src/openssl/ec.cpp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue