Skip to content

Commit f585c6e

Browse files
chfastaxic
authored andcommitted
intx from Hunter PoC
1 parent acba3a9 commit f585c6e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ include(CableToolchains)
1212
include(CMakePackageConfigHelpers)
1313
include(GNUInstallDirs)
1414

15-
if(EVMC_TESTING OR EVMC_TEST_TOOLS)
16-
# If Hunter is needed it must be initialized before project(hera).
17-
include(evmc/cmake/cable/HunterGate.cmake)
18-
include(evmc/cmake/HunterConfig.cmake)
19-
endif()
15+
include(evmc/cmake/cable/HunterGate.cmake)
16+
17+
HunterGate(
18+
URL "https://github.com/chfast/hunter/archive/afa1e3f1bba64de50692d96ff5ce1805bbefa171.tar.gz"
19+
SHA1 "0550019a38e10c22530e618d89c9a7f22b95143a"
20+
)
2021

2122
cable_configure_toolchain(DEFAULT cxx17-pic)
2223

src/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
find_package(Threads REQUIRED)
22

3+
hunter_add_package(intx)
4+
find_package(intx CONFIG REQUIRED)
5+
36
set(hera_include_dir ${PROJECT_SOURCE_DIR}/include)
47
get_filename_component(evmc_include_dir .. ABSOLUTE)
58

@@ -33,7 +36,7 @@ endif()
3336
target_include_directories(hera
3437
PUBLIC $<BUILD_INTERFACE:${hera_include_dir}>$<INSTALL_INTERFACE:include>
3538
)
36-
target_link_libraries(hera PUBLIC evmc::evmc PRIVATE hera-buildinfo evmc::instructions)
39+
target_link_libraries(hera PUBLIC evmc::evmc PRIVATE hera-buildinfo evmc::instructions intx::intx)
3740
if(NOT WIN32)
3841
if(CMAKE_COMPILER_IS_GNUCXX)
3942
set_target_properties(hera PROPERTIES LINK_FLAGS "-Wl,--no-undefined")

0 commit comments

Comments
 (0)