Fix using arguments in `configure_test_target`
This commit is contained in:
parent
9cbff29c9e
commit
f20ea87f32
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue