File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ include(CableToolchains)
12
12
include (CMakePackageConfigHelpers )
13
13
include (GNUInstallDirs )
14
14
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
+ )
20
21
21
22
cable_configure_toolchain (DEFAULT cxx17-pic )
22
23
Original file line number Diff line number Diff line change 1
1
find_package (Threads REQUIRED )
2
2
3
+ hunter_add_package (intx )
4
+ find_package (intx CONFIG REQUIRED )
5
+
3
6
set (hera_include_dir ${PROJECT_SOURCE_DIR} /include )
4
7
get_filename_component (evmc_include_dir .. ABSOLUTE )
5
8
@@ -33,7 +36,7 @@ endif()
33
36
target_include_directories (hera
34
37
PUBLIC $< BUILD_INTERFACE:${hera_include_dir} > $< INSTALL_INTERFACE:include>
35
38
)
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 )
37
40
if (NOT WIN32 )
38
41
if (CMAKE_COMPILER_IS_GNUCXX )
39
42
set_target_properties (hera PROPERTIES LINK_FLAGS "-Wl,--no-undefined" )
You can’t perform that action at this time.
0 commit comments