1
0
Fork 0
forked from lthn/blockchain

fixed BUILD_SHARED_LIBS overriding in bitcoin-secp256k1

This commit is contained in:
cryptozoidberg 2024-10-25 20:17:57 +04:00
parent 4e78beebeb
commit c0c39276c7
No known key found for this signature in database
GPG key ID: 2E10CC61CAC8F36D

View file

@ -11,6 +11,11 @@ option(SECP256K1_BUILD_EXHAUSTIVE_TESTS "Build exhaustive tests." OFF)
option(SECP256K1_BUILD_CTIME_TESTS "Build constant-time tests." OFF)
option(SECP256K1_BUILD_EXAMPLES "Build examples." OFF)
set_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED 1)
if(STATIC)
set(SECP256K1_DISABLE_SHARED ON CACHE BOOL "Disable shared library for secp256k1")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries by default" FORCE)
endif()
add_subdirectory(bitcoin-secp256k1)
if( NOT DISABLE_TOR)