Stephen Kelly
892243fc3b
Tests: Require CMake 3.0 for the SystemInformation test.
...
Correctly identify AppleClang.
2014-04-07 16:48:44 +02:00
Stephen Kelly
f6cae4ea06
Tests: Remove some trailing black lines.
2014-02-17 18:54:53 +01:00
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
77543bde41
Convert CMake-language commands to lower case
...
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
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
ce8810c4e7
ENH: preclean some warnings
2008-03-25 11:27:18 -04:00
Ken Martin
2208231aac
ENH: some more CMakeList cleanups
2007-05-11 10:22:20 -04:00
Andy Cedilnik
25cc03fd6f
ENH: Display all output in ctest
2005-02-08 10:13:30 -05:00
Andy Cedilnik
e9b8a57c1f
ENH:Add test for GET/SET_DIRECTORY_PROPERTY
2004-04-26 13:42:08 -04:00
Andy Cedilnik
96d561aabc
ENH: Add option to retrieve list of macros. Close Bug #25 - Get_CMAKE_PROPERTIES
2003-08-06 18:54:13 -04:00
Andy Cedilnik
c7f1198a00
ENH: Add accessor for the list of commands
2003-08-03 20:47:44 -04:00
Andy Cedilnik
a2c4d8eb90
Display Cache and all variables
2003-03-17 08:25:45 -05:00
Andy Cedilnik
814b8856a0
Add command for accessing cmake properties. At this point the only properties are VARIABLES and CACHE_VARIABLES. Also add test for this feature
2003-03-06 11:20:26 -05:00
Bill Hoffman
8b689f9a62
clean up test for html output
2002-11-12 14:18:36 -05:00
Bill Hoffman
56d4bba759
fix project name
2002-11-12 09:31:05 -05:00
Bill Hoffman
928b9dee06
new test
2002-11-11 18:07:20 -05:00