]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: move a macro definition to the proper file
authorMatthias Maier <tamiko@43-1.org>
Sun, 11 Dec 2022 06:07:33 +0000 (00:07 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sun, 11 Dec 2022 06:07:33 +0000 (00:07 -0600)
cmake/macros/macro_deal_ii_add_test.cmake
cmake/macros/macro_deal_ii_pickup_tests.cmake

index 363532718d8cde6f045a52c0366a600e37b5b5b1..6f9d64d344a4e243e87cfb20c760df60557711a4 100644 (file)
 #     deal_ii_add_test(category test_name comparison_file)
 #
 
+#
+# A small helper macro that is used below:
+#
+
+macro(item_matches _var _regex)
+  set(${_var})
+  foreach (_item ${ARGN})
+    if("${_item}" MATCHES ${_regex})
+      set(${_var} TRUE)
+      break()
+    endif()
+  endforeach()
+endmacro()
+
+
 function(deal_ii_add_test _category _test_name _comparison_file)
 
   if(NOT TARGET compile_test_executables)
index d70f926194e123c98e3ecf7da182bd69d66dc79b..8e906e6a973e8e3a6bb89a0386719395bf0c48fa 100644 (file)
@@ -74,7 +74,7 @@
 #
 
 #
-# Two very small macros that are used below:
+# A small helper macro that is used below:
 #
 
 macro(set_if_empty _variable)
@@ -83,16 +83,6 @@ macro(set_if_empty _variable)
   endif()
 endmacro()
 
-macro(item_matches _var _regex)
-  set(${_var})
-  foreach (_item ${ARGN})
-    if("${_item}" MATCHES ${_regex})
-      set(${_var} TRUE)
-      break()
-    endif()
-  endforeach()
-endmacro()
-
 
 macro(deal_ii_pickup_tests)
 

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.