Skip to content

Commit

Permalink
Fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
akokoshn authored and akokoshn committed Jun 18, 2024
1 parent 0b66c51 commit 04ad40f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,10 @@ endif()

include(CTest)

set(include_dir ${CMAKE_CURRENT_SOURCE_DIR}/include)

add_subdirectory(lib)

# INSTALL

install(DIRECTORY ${include_dir}/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

set(CONFIG_PATH ${CMAKE_INSTALL_LIBDIR}/cmake/evm-assigner)
set(TARGET_NAMESPACE evm-assigner::)
install(EXPORT assignerTargets NAMESPACE ${TARGET_NAMESPACE} DESTINATION ${CONFIG_PATH})
Expand Down
1 change: 0 additions & 1 deletion cmake/Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ find_dependency(evmc REQUIRED)
find_dependency(intx REQUIRED)
find_dependency(ethash REQUIRED)

include("${CMAKE_CURRENT_LIST_DIR}/evmoneTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/assignerTargets.cmake")
1 change: 0 additions & 1 deletion lib/assigner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ find_package(blueprint_crypto3 REQUIRED)

target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/evmone>)

Expand Down
2 changes: 1 addition & 1 deletion lib/assigner/evmone/execution_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class ExecutionState

const evmc_tx_context& get_tx_context() noexcept
{
if (bool(m_tx.block_timestamp == 0))
if (m_tx.block_timestamp == 0)
m_tx = host.get_tx_context();
return m_tx;
}
Expand Down

0 comments on commit 04ad40f

Please sign in to comment.