Skip to content

Commit

Permalink
cmake: Fix evmc_add_vm_test() not working in cross-compilation (#695)
Browse files Browse the repository at this point in the history
In add_test() use the `evmc::evmc-vmtester` CMake target name directly
to make it work with `CROSSCOMPILING_EMULATOR`.
  • Loading branch information
chfast authored Sep 2, 2023
1 parent 3db7f9e commit 61c23b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/EVMC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ function(evmc_add_vm_test)
endif()

cmake_parse_arguments("" "" NAME;TARGET "" ${ARGN})
add_test(NAME ${_NAME} COMMAND $<TARGET_FILE:evmc::evmc-vmtester> $<TARGET_FILE:${_TARGET}>)
add_test(NAME ${_NAME} COMMAND evmc::evmc-vmtester $<TARGET_FILE:${_TARGET}>)
endfunction()

0 comments on commit 61c23b8

Please sign in to comment.