Skip to content

Commit

Permalink
cmake: Use target name directly in add_test()
Browse files Browse the repository at this point in the history
In add_test() use the evmc::evmc-vmtester target name directly
to make it work with `CROSSCOMPILING_EMULATOR`.
  • Loading branch information
chfast committed Sep 2, 2023
1 parent 3db7f9e commit 97c929b
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 97c929b

Please sign in to comment.