Skip to content
Snippets Groups Projects
Commit 27af4005 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

Merge branch 'feature/make-test-depend-on-target' into 'master'

[cmake][dune_add_test] Set test property to depend on existence of target

Closes #100

See merge request dune-common!404
parents 494ea423 69efd0be
No related branches found
No related tags found
No related merge requests found
......@@ -308,6 +308,8 @@ function(dune_add_test)
COMMAND "${ACTUAL_TESTCOMMAND}" ${ACTUAL_CMD_ARGS}
)
# Make the test depend on the existence of the target to trigger "Not Run" response
set_tests_properties(${ACTUAL_NAME} PROPERTIES REQUIRED_FILES ${ADDTEST_TARGET})
# Define the number of processors (ctest will coordinate this with the -j option)
set_tests_properties(${ACTUAL_NAME} PROPERTIES PROCESSORS ${procnum})
# Apply the timeout (which was defaulted to 5 minutes if not specified)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment