Kitware Robot
9db3116226
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.
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' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -04:00
Kitware Robot
7bbaa4283d
Remove trailing whitespace from most CMake and C/C++ code
...
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace. Wipe out all remnants of trailing whitespace
everywhere except third-party code.
Run the following shell code:
git ls-files -z -- \
bootstrap doxygen.config '*.readme' \
'*.c' '*.cmake' '*.cpp' '*.cxx' \
'*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
'*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
2012-08-13 14:18:39 -04:00
Ken Martin
2208231aac
ENH: some more CMakeList cleanups
2007-05-11 10:22:20 -04:00
Bill Hoffman
f2e8fd06c2
ENH: make sure things do not depend on optimized libraries if they are debug, and the other way around as well
2006-11-27 16:13:41 -05:00
Ken Martin
f65b3b0971
BUG: minor fix to project name to match ADD_TEST call
2005-07-06 15:24:31 -04:00
Ken Martin
d75a2f0861
ENH: convert to lower case
2005-06-27 12:45:55 -04:00
Andy Cedilnik
b569571131
ENH: Remove warning
2004-04-30 17:28:54 -04:00
Andy Cedilnik
72be68d0e0
Improve test
2003-03-17 14:29:22 -05:00
Andy Cedilnik
e92c98f4b0
Add testing for when C sources are compiled with C++ compiler
2003-03-17 13:26:30 -05:00
Ken Martin
7cd492d443
a minor fix to make my life easier
2002-06-27 16:05:23 -04:00
Bill Hoffman
c487718844
add a test with no extension
2002-06-25 09:59:32 -04:00
Bill Hoffman
4591e41a62
BUG: add link directories for target link libraries and add a test for it
2002-04-19 15:28:43 -04:00
Ken Martin
2b895779c2
new tests
2001-06-21 17:52:22 -04:00