From 975a25f7f6bc525833521c180d047f235466cdb4 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 20 Feb 2022 13:42:37 -0600 Subject: [PATCH] CMake: Allow to customize test command line --- cmake/macros/macro_deal_ii_add_test.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/macros/macro_deal_ii_add_test.cmake b/cmake/macros/macro_deal_ii_add_test.cmake index b9a830eef5..ef3e8ef538 100644 --- a/cmake/macros/macro_deal_ii_add_test.cmake +++ b/cmake/macros/macro_deal_ii_add_test.cmake @@ -314,6 +314,15 @@ FUNCTION(DEAL_II_ADD_TEST _category _test_name _comparison_file) SET(_target_short ${_test_name}.${_build_lowercase}) # short target name SET(_run_args "$") # the command to issue + # + # If the variable ${category_test_RUNARGS_PREFIX) is nonempty prepend + # it to the command line of the test: + # + if(NOT "${${_category}_${_test_name}_RUNARGS_PREFIX}" STREQUAL "") + SET(_run_args + ${${_category}_${_test_name}_RUNARGS_PREFIX} "${_run_args}") + ENDIF() + # # Override target and run command for parameter file variants: # -- 2.39.5