From: Matthias Maier Date: Thu, 17 Feb 2022 22:56:02 +0000 (-0600) Subject: CMake: Do not use "\." in CMake regular expression X-Git-Tag: v9.4.0-rc1~470^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13413%2Fhead;p=dealii.git CMake: Do not use "\." in CMake regular expression --- 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}"