File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ include(CableToolchains)
1212include (CMakePackageConfigHelpers )
1313include (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 (Hunter/init )
2016
2117cable_configure_toolchain (DEFAULT cxx17-pic )
2218
Original file line number Diff line number Diff line change 1+
2+ set (HUNTER_CONFIGURATION_TYPES Release
3+ CACHE STRING "Build type of the Hunter packages" )
4+
5+ include (HunterGate )
6+
7+ HunterGate (
8+ URL "https://github.com/ruslo/hunter/archive/v0.23.169.tar.gz"
9+ SHA1 "60de9f275143ab38df559986c04e3726683e7de7"
10+ )
Original file line number Diff line number Diff line change 11find_package (Threads REQUIRED )
22
3+ hunter_add_package (intx )
4+ find_package (intx CONFIG REQUIRED )
5+
36set (hera_include_dir ${PROJECT_SOURCE_DIR} /include)
47get_filename_component (evmc_include_dir .. ABSOLUTE )
58
@@ -33,7 +36,7 @@ endif()
3336target_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 )
3740if (NOT WIN32 )
3841 if (CMAKE_COMPILER_IS_GNUCXX)
3942 set_target_properties (hera PROPERTIES LINK_FLAGS "-Wl,--no-undefined" )
You can’t perform that action at this time.
0 commit comments