Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions third_party/secp256k1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,12 @@
limitations under the License.
]]

add_library(secp256k1 secp256k1/src/secp256k1.c)
if(MSVC)
target_compile_options(secp256k1 PRIVATE /w) # Not much we can do about warnings
endif()
# cmake-format: off
target_compile_definitions(
secp256k1
PUBLIC ECMULT_WINDOW_SIZE=15
ECMULT_GEN_PREC_BITS=4
ENABLE_MODULE_ECDH
ENABLE_MODULE_RECOVERY
set(SECP256K1_ENABLE_MODULE_RECOVERY
ON
CACHE BOOL "Enable ECDSA pubkey recovery module." FORCE
)
# cmake-format: on
target_include_directories(
secp256k1
PRIVATE secp256k1
INTERFACE secp256k1/include
set(BUILD_SHARED_LIBS
OFF
CACHE BOOL "Build shared libraries." FORCE
)
add_subdirectory(secp256k1)
2 changes: 1 addition & 1 deletion third_party/secp256k1/secp256k1
Submodule secp256k1 updated 170 files
Loading