Fix using arguments in `configure_test_target`

This commit is contained in:
Martchus 2021-11-02 17:49:28 +01:00
parent 9cbff29c9e
commit f20ea87f32
1 changed files with 2 additions and 2 deletions

View File

@ -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