Skip to content

Commit

Permalink
Clean up secp256k1 library deps and defines.
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Sep 30, 2015
1 parent 768bb73 commit 97cc65d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions cmake/UseUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ function(eth_apply TARGET REQUIRED SUBMODULE)
target_include_directories(${TARGET} SYSTEM BEFORE PUBLIC ${Utils_INCLUDE_DIRS})

if (${SUBMODULE} STREQUAL "secp256k1")
if (NOT EMSCRIPTEN)
eth_use(${TARGET} ${REQUIRED} Gmp)
endif()
target_link_libraries(${TARGET} ${Utils_SECP256K1_LIBRARIES})
target_compile_definitions(${TARGET} PUBLIC ETH_HAVE_SECP256K1)
endif()

if (${SUBMODULE} STREQUAL "scrypt")
Expand Down
2 changes: 1 addition & 1 deletion utils/secp256k1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
file(GLOB HEADERS "*.h")

add_library(secp256k1 secp256k1.c include/secp256k1.h ${HEADERS})
target_compile_definitions(secp256k1 PRIVATE -DHAVE_CONFIG_H)
target_compile_definitions(secp256k1 INTERFACE ETH_HAVE_SECP256K1 PRIVATE HAVE_CONFIG_H)

if (NOT MSVC)
eth_use(secp256k1 REQUIRED Gmp)
Expand Down

0 comments on commit 97cc65d

Please sign in to comment.