From 0ef20d73dbed34239bfed79146032143671bb889 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 17 Feb 2022 16:56:02 -0600 Subject: [PATCH] CMake: Do not use "\." in CMake regular expression --- cmake/macros/macro_deal_ii_add_test.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/macros/macro_deal_ii_add_test.cmake b/cmake/macros/macro_deal_ii_add_test.cmake index febb4e747f..77cb403c8d 100644 --- a/cmake/macros/macro_deal_ii_add_test.cmake +++ b/cmake/macros/macro_deal_ii_add_test.cmake @@ -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}" -- 2.39.5