-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump deps versions (Speedb 2.8.0, Secp256k1 0.4.1, Ethash 1.0.1)
- Loading branch information
1 parent
14d2b81
commit 95a9cbd
Showing
4 changed files
with
71 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
include(ExternalProject) | ||
|
||
if (MSVC) | ||
set(_only_release_configuration -DCMAKE_CONFIGURATION_TYPES=Release) | ||
set(_overwrite_install_command INSTALL_COMMAND cmake --build <BINARY_DIR> --config Release --target install) | ||
set(_only_release_configuration -DCMAKE_CONFIGURATION_TYPES=Release) | ||
set(_overwrite_install_command INSTALL_COMMAND cmake --build <BINARY_DIR> --config Release --target install) | ||
endif() | ||
|
||
set(prefix "${CMAKE_BINARY_DIR}/deps") | ||
set(ETHASH_LIBRARY "${prefix}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}ethash${CMAKE_STATIC_LIBRARY_SUFFIX}") | ||
set(ETHASH_INCLUDE_DIR "${prefix}/include") | ||
set(ETHASH_BYPRODUCTS "${prefix}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}keccak${CMAKE_STATIC_LIBRARY_SUFFIX}") | ||
|
||
set(ETHASH_VERSION "1.0.1") | ||
|
||
ExternalProject_Add( | ||
ethash | ||
PREFIX "${prefix}" | ||
DOWNLOAD_NAME ethash-v1.0.0.tar.gz | ||
DOWNLOAD_NO_PROGRESS 1 | ||
URL https://github.com/chfast/ethash/archive/refs/tags/v1.0.0.tar.gz | ||
URL_HASH SHA256=36071d9c4aaf3fd9e43155d7c2604404d6ab70613e6978cff964c5814f461a1a | ||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${prefix} | ||
-DCMAKE_POSITION_INDEPENDENT_CODE=${BUILD_SHARED_LIBS} | ||
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} | ||
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} | ||
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} | ||
-DETHASH_BUILD_TESTS=OFF | ||
-DETHASH_BUILD_ETHASH=ON | ||
-DCMAKE_INSTALL_LIBDIR=lib | ||
${_only_release_configuration} | ||
LOG_CONFIGURE 1 | ||
${_overwrite_install_command} | ||
LOG_INSTALL 1 | ||
BUILD_BYPRODUCTS "${ETHASH_LIBRARY}" | ||
BUILD_BYPRODUCTS "${ETHASH_BYPRODUCTS}" | ||
ethash | ||
PREFIX "${prefix}" | ||
GIT_REPOSITORY https://github.com/chfast/ethash | ||
GIT_TAG "v${ETHASH_VERSION}" | ||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${prefix} | ||
-DCMAKE_POSITION_INDEPENDENT_CODE=${BUILD_SHARED_LIBS} | ||
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} | ||
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} | ||
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} | ||
-DETHASH_BUILD_TESTS=OFF | ||
-DETHASH_BUILD_ETHASH=ON | ||
-DCMAKE_INSTALL_LIBDIR=lib | ||
${_only_release_configuration} | ||
LOG_CONFIGURE 1 | ||
${_overwrite_install_command} | ||
LOG_INSTALL 1 | ||
BUILD_BYPRODUCTS "${ETHASH_LIBRARY}" | ||
BUILD_BYPRODUCTS "${ETHASH_BYPRODUCTS}" | ||
) | ||
|
||
# Create imported library | ||
add_library(Ethash STATIC IMPORTED) | ||
file(MAKE_DIRECTORY "${ETHASH_INCLUDE_DIR}") # Must exist. | ||
set_property(TARGET Ethash PROPERTY IMPORTED_CONFIGURATIONS Release) | ||
set_property(TARGET Ethash PROPERTY IMPORTED_LOCATION_RELEASE "${ETHASH_LIBRARY}") | ||
set_property(TARGET Ethash PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${ETHASH_INCLUDE_DIR}") | ||
add_dependencies(Ethash ethash ${ETHASH_LIBRARY} ${ETHASH_BYPRODUCTS}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters