Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit bd25ec4

Browse files
committedFeb 20, 2019
Upgrade Hunter and ethash (0.4.3)
1 parent e6868d3 commit bd25ec4

File tree

2 files changed

+32
-37
lines changed

2 files changed

+32
-37
lines changed
 

‎CMakeLists.txt

+32-32
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ cable_configure_toolchain(DEFAULT cxx11)
1414
set(HUNTER_CONFIGURATION_TYPES Release CACHE STRING "Build type of Hunter packages")
1515
set(HUNTER_JOBS_NUMBER 6 CACHE STRING "Number of parallel builds used by Hunter")
1616
HunterGate(
17-
URL "https://github.com/ruslo/hunter/archive/v0.23.6.tar.gz"
18-
SHA1 "951e8daf57a51708b0e6a00cab342a042db57a2f"
17+
URL "https://github.com/ruslo/hunter/archive/v0.23.112.tar.gz"
18+
SHA1 "4b894e1d5d203f0cc9a77431dbb1b486ab6f4430"
1919
LOCAL
2020
)
2121

@@ -34,27 +34,27 @@ option(DEVBUILD "Log developer metrics" OFF)
3434

3535
# propagates CMake configuration options to the compiler
3636
function(configureProject)
37-
if (ETHASHCL)
38-
add_definitions(-DETH_ETHASHCL)
39-
endif()
40-
if (ETHASHCUDA)
41-
add_definitions(-DETH_ETHASHCUDA)
42-
endif()
43-
if (ETHASHCPU)
44-
add_definitions(-DETH_ETHASHCPU)
45-
endif()
46-
if (ETHDBUS)
47-
add_definitions(-DETH_DBUS)
48-
endif()
49-
if (APICORE)
50-
add_definitions(-DAPI_CORE)
51-
endif()
52-
if (BINKERN)
53-
add_definitions(-DBIN_KERN)
54-
endif()
55-
if (DEVBUILD)
56-
add_definitions(-DDEV_BUILD)
57-
endif()
37+
if (ETHASHCL)
38+
add_definitions(-DETH_ETHASHCL)
39+
endif()
40+
if (ETHASHCUDA)
41+
add_definitions(-DETH_ETHASHCUDA)
42+
endif()
43+
if (ETHASHCPU)
44+
add_definitions(-DETH_ETHASHCPU)
45+
endif()
46+
if (ETHDBUS)
47+
add_definitions(-DETH_DBUS)
48+
endif()
49+
if (APICORE)
50+
add_definitions(-DAPI_CORE)
51+
endif()
52+
if (BINKERN)
53+
add_definitions(-DBIN_KERN)
54+
endif()
55+
if (DEVBUILD)
56+
add_definitions(-DDEV_BUILD)
57+
endif()
5858
endfunction()
5959

6060
hunter_add_package(Boost COMPONENTS system filesystem thread)
@@ -96,28 +96,28 @@ add_subdirectory(libhwmon)
9696
add_subdirectory(libpoolprotocols)
9797

9898
if (ETHASHCL)
99-
add_subdirectory(libethash-cl)
100-
if (BINKERN)
101-
add_subdirectory(libethash-cl/kernels)
102-
endif()
99+
add_subdirectory(libethash-cl)
100+
if (BINKERN)
101+
add_subdirectory(libethash-cl/kernels)
102+
endif()
103103
endif ()
104104
if (ETHASHCUDA)
105-
add_subdirectory(libethash-cuda)
105+
add_subdirectory(libethash-cuda)
106106
endif ()
107107
if (ETHASHCPU)
108-
add_subdirectory(libethash-cpu)
108+
add_subdirectory(libethash-cpu)
109109
endif ()
110110
if (APICORE)
111-
add_subdirectory(libapicore)
111+
add_subdirectory(libapicore)
112112
endif()
113113

114114
add_subdirectory(ethminer)
115115

116116

117117
if(WIN32)
118-
set(CPACK_GENERATOR ZIP)
118+
set(CPACK_GENERATOR ZIP)
119119
else()
120-
set(CPACK_GENERATOR TGZ)
120+
set(CPACK_GENERATOR TGZ)
121121
endif()
122122
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME})
123123
set(CPACK_PACKAGE_CHECKSUM SHA256)

‎cmake/Hunter/config.cmake

-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
hunter_config(CURL VERSION ${HUNTER_CURL_VERSION} CMAKE_ARGS HTTP_ONLY=ON CMAKE_USE_OPENSSL=OFF CMAKE_USE_LIBSSH2=OFF CURL_CA_PATH=none)
22
hunter_config(Boost VERSION 1.66.0)
3-
4-
hunter_config(ethash VERSION 0.4.1
5-
URL https://github.com/chfast/ethash/archive/v0.4.1.tar.gz
6-
SHA1 12a7ad52809ca74f2a5e8f849408f0ebf795719c
7-
)

1 commit comments

Comments
 (1)

nnlinh89 commented on May 4, 2021

@nnlinh89

Great

This repository has been archived.