Skip to content

Commit

Permalink
cmake: Add intx dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed May 15, 2019
1 parent a318cbd commit 01c20c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
16 changes: 7 additions & 9 deletions cmake/Hunter/init.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@

if(EVMC_TESTING OR EVMC_TEST_TOOLS)
set(HUNTER_CONFIGURATION_TYPES Release
CACHE STRING "Build type of the Hunter packages")
set(HUNTER_CONFIGURATION_TYPES Release
CACHE STRING "Build type of the Hunter packages")

include(HunterGate)
include(HunterGate)

HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.23.169.tar.gz"
SHA1 "60de9f275143ab38df559986c04e3726683e7de7"
)
endif()
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.23.169.tar.gz"
SHA1 "60de9f275143ab38df559986c04e3726683e7de7"
)
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
find_package(Threads REQUIRED)

hunter_add_package(intx)
find_package(intx CONFIG REQUIRED)

set(hera_include_dir ${PROJECT_SOURCE_DIR}/include)
get_filename_component(evmc_include_dir .. ABSOLUTE)

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

0 comments on commit 01c20c7

Please sign in to comment.