]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Allow to customize test command line
authorMatthias Maier <tamiko@43-1.org>
Sun, 20 Feb 2022 19:42:37 +0000 (13:42 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 11 Mar 2022 21:46:34 +0000 (15:46 -0600)
cmake/macros/macro_deal_ii_add_test.cmake

index b9a830eef5e1befb20244f1829e00018386e144e..ef3e8ef5383a53249e4c91f717f8decd6c116fff 100644 (file)
@@ -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 "$<TARGET_FILE:${_target}>") # 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:
       #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.