Skip to content
Snippets Groups Projects
Commit f0034a62 authored by Lars Bilke's avatar Lars Bilke
Browse files

Changed to lower-case function naming in CMake.

Ancient CMake versions required upper-case commands. Later command
names became case-insensitive. Now the preferred style is lower-case.

Run the following shell code:

cmake --help-command-list |
grep -v "cmake version" |
while read c; do
    echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
parent 916aa47f
No related branches found
No related tags found
Loading
Showing
with 415 additions and 415 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment