Skip to content

Commit 01c20c7

Browse files
committed
cmake: Add intx dependency
1 parent a318cbd commit 01c20c7

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

cmake/Hunter/init.cmake

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11

2-
if(EVMC_TESTING OR EVMC_TEST_TOOLS)
3-
set(HUNTER_CONFIGURATION_TYPES Release
4-
CACHE STRING "Build type of the Hunter packages")
2+
set(HUNTER_CONFIGURATION_TYPES Release
3+
CACHE STRING "Build type of the Hunter packages")
54

6-
include(HunterGate)
5+
include(HunterGate)
76

8-
HunterGate(
9-
URL "https://github.com/ruslo/hunter/archive/v0.23.169.tar.gz"
10-
SHA1 "60de9f275143ab38df559986c04e3726683e7de7"
11-
)
12-
endif()
7+
HunterGate(
8+
URL "https://github.com/ruslo/hunter/archive/v0.23.169.tar.gz"
9+
SHA1 "60de9f275143ab38df559986c04e3726683e7de7"
10+
)

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)