diff --git a/cmake/modules/TestUtilities.cmake b/cmake/modules/TestUtilities.cmake index 25660c2..0c9c243 100644 --- a/cmake/modules/TestUtilities.cmake +++ b/cmake/modules/TestUtilities.cmake @@ -71,10 +71,10 @@ function (configure_test_target) # make the test recognized by ctest if (NOT ARGS_MANUAL) set(FULL_TEST_NAME "${ARGS_TARGET_NAME}_run_${ARGS_TEST_NAME}") - set("${FULL_TEST_NAME_OUT_VAR}" + set("${ARGS_FULL_TEST_NAME_OUT_VAR}" "${FULL_TEST_NAME}" PARENT_SCOPE) - add_test(NAME "${FULL_TEST_NAME}" COMMAND "${TEST_TARGET_NAME}" ${RUN_ARGS}) + add_test(NAME "${FULL_TEST_NAME}" COMMAND "${TEST_TARGET_NAME}" ${ARGS_RUN_ARGS}) endif () # add the test executable to the dependencies of the check target