Skip to content
Snippets Groups Projects
Commit 2dc4154a authored by Stephan Hilb's avatar Stephan Hilb
Browse files

dune_add_test: allow target name and target file to be different

parent 9c51fb64
Branches
Tags
1 merge request!581dune_add_test: allow target name and target file to be different
......@@ -398,7 +398,7 @@ function(dune_add_test)
# Make the test depend on the existence of the target to trigger "Not Run" response
if(NOT ADDTEST_EXPECT_COMPILE_FAIL)
set_tests_properties(${ACTUAL_NAME} PROPERTIES REQUIRED_FILES ${ADDTEST_TARGET})
set_tests_properties(${ACTUAL_NAME} PROPERTIES REQUIRED_FILES $<TARGET_FILE:${ADDTEST_TARGET}>)
endif()
# Define the number of processors (ctest will coordinate this with the -j option)
set_tests_properties(${ACTUAL_NAME} PROPERTIES PROCESSORS ${procnum})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment