]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Do not use "\." in CMake regular expression 13413/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 17 Feb 2022 22:56:02 +0000 (16:56 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 17 Feb 2022 22:56:02 +0000 (16:56 -0600)
cmake/macros/macro_deal_ii_add_test.cmake

index febb4e747f6390174ce30affd7addc1b74cf8184..77cb403c8d5d8418fe33f59dbf6cacc1b2437179 100644 (file)
@@ -279,12 +279,12 @@ FUNCTION(DEAL_II_ADD_TEST _category _test_name _comparison_file)
   ENDIF()
 
   #
-  # Run CONFIGURE_FILE on every parameter file ending in ".in":
+  # Run CONFIGURE_FILE on every parameter file ending in "in"
   #
 
-  IF("${_source_file}" MATCHES "\.in$")
+  IF("${_source_file}" MATCHES ".in$")
     SET(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
-    STRING(REGEX MATCH "(json|prm)\.in$" _suffix "${_source_file}")
+    STRING(REGEX MATCH "(json|prm).in$" _suffix "${_source_file}")
     STRING(REPLACE ".in" "" _suffix "${_suffix}")
     CONFIGURE_FILE(
       "${_source_file}"

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.