Skip to content

Commit 629ec44

Browse files
authored
test/CMakeLists.txt: use $<TARGET_FILE:testrunner> (#6871)
1 parent c9ef0ee commit 629ec44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if (BUILD_TESTS)
7979
if (${NAME} IN_LIST SKIP_TESTS)
8080
elseif(TEST ${NAME})
8181
else()
82-
add_test(NAME ${NAME} COMMAND testrunner ${NAME} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
82+
add_test(NAME ${NAME} COMMAND $<TARGET_FILE:testrunner> ${NAME} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
8383
endif()
8484
endfunction()
8585

0 commit comments

Comments
 (0)