From: Matthias Maier Date: Sat, 26 Nov 2022 14:05:44 +0000 (-0600) Subject: CMake: ensure that else() and endif() statements contain no parameter X-Git-Tag: v9.5.0-rc1~805^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68fcf387ebfd9912961227d467b319edf99bab4c;p=dealii.git CMake: ensure that else() and endif() statements contain no parameter --- diff --git a/contrib/utilities/lowercase_cmake b/contrib/utilities/lowercase_cmake index d0bea70d4a..d216d48712 100755 --- a/contrib/utilities/lowercase_cmake +++ b/contrib/utilities/lowercase_cmake @@ -46,6 +46,12 @@ collect_function_names | while read command ; do echo 's/'"${command}"'\(\s*\)(/'"$command"'\1(/gI' done > "${SED_FILE}" +# +# Add rules to ensure that else() and endif() do not contain a statement. +# +echo 's/else([^)]*)/else()/gI' > "${SED_FILE}" +echo 's/endif([^)]*)/endif()/gI' > "${SED_FILE}" + # # Apply rules file to all CMake files: #