Remove CMake-language block-end command arguments
authorHans Johnson <hans-johnson@uiowa.edu>
Sun, 10 Jul 2016 19:38:44 +0000 (14:38 -0500)
committerHans Johnson <hans-johnson@uiowa.edu>
Sun, 10 Jul 2016 19:38:48 +0000 (14:38 -0500)
commit5333ddd9dc0fe7a54563fab4536b4a882605c02a
tree593aa7d8c899b127d6bb38bfb57b163ca63a63f2
parentb1e0d47edc106af8f1f0b9290785ced77c0ed1d0
Remove CMake-language block-end command arguments

Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block.  This is no longer the preferred style.

NOTE: MUST USE GNU compliant version of sed
Run the following shell code:

for c in else endif endforeach endfunction endmacro endwhile; do
    echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done >convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \
   | xargs -0 gsed -i -f convert.sed \
&& rm convert.sed
13 files changed:
BLAS/CMakeLists.txt
BLAS/TESTING/CMakeLists.txt
CBLAS/CMakeLists.txt
CBLAS/src/CMakeLists.txt
CBLAS/testing/CMakeLists.txt
CMAKE/CheckTimeFunction.cmake
CMAKE/FortranMangling.cmake
CMakeLists.txt
LAPACKE/CMakeLists.txt
TESTING/CMakeLists.txt
TESTING/EIG/CMakeLists.txt
TESTING/LIN/CMakeLists.txt
lapack_build.cmake