Skip to content

Commit

Permalink
Order matters for EosioTester linked libraries.
Browse files Browse the repository at this point in the history
Some cleanup as well.
  • Loading branch information
oschwaldp-oci committed Sep 15, 2023
1 parent 64e414f commit b1addd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeModules/EosioTester.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ endif()
add_library(EosioTester INTERFACE)

target_link_libraries(EosioTester INTERFACE
EosioChain
${libtester}
Boost::unit_test_framework
EosioChain
)

macro(add_eosio_test_executable test_name)
Expand Down
7 changes: 3 additions & 4 deletions CMakeModules/EosioTesterBuild.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ target_include_directories(EosioChain INTERFACE
@CMAKE_SOURCE_DIR@/libraries/softfloat/source/include
@CMAKE_SOURCE_DIR@/libraries/appbase/include
@CMAKE_SOURCE_DIR@/libraries/chainbase/include
@CMAKE_SOURCE_DIR@/libraries/testing/include
@CMAKE_SOURCE_DIR@/libraries/wasm-jit/Include )
@CMAKE_SOURCE_DIR@/libraries/wasm-jit/include )


#adds -ltr. Ubuntu eosio.contracts build breaks without this
Expand All @@ -122,13 +121,13 @@ endif()
add_library(EosioTester INTERFACE)

target_link_libraries(EosioTester INTERFACE
EosioChain
${libtester}
Boost::unit_test_framework
EosioChain
)

target_include_directories(EosioTester INTERFACE
@CMAKE_SOURCE_DIR@/libraries/testing/Include )
@CMAKE_SOURCE_DIR@/libraries/testing/include )

macro(add_eosio_test_executable test_name)
add_executable( ${test_name} ${ARGN} )
Expand Down

0 comments on commit b1addd9

Please sign in to comment.