diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c82c339d595..4c1d977e6af 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -79,7 +79,7 @@ if (BUILD_TESTS) if (${NAME} IN_LIST SKIP_TESTS) elseif(TEST ${NAME}) else() - add_test(NAME ${NAME} COMMAND testrunner ${NAME} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) + add_test(NAME ${NAME} COMMAND $ ${NAME} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) endif() endfunction()