Commit Graph

62 Commits

Author SHA1 Message Date
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
Todd Gamblin 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 2010-08-09 08:48:31 -04:00
Brad King c4bb9c9d42 Convert CMake find-modules to BSD License
This adds copyright/license notification blocks CMake's find-modules.
Many of the modules had no notices at all.  Some had notices referring
to the BSD license already.  This commit normalizes existing notices and
adds missing notices.
2009-09-28 11:45:50 -04:00
Bill Hoffman b442e86492 ENH: change to fatal error 2006-01-25 12:16:49 -05:00
Bill Hoffman 19e566d395 ENH: add qt quiet stuff 2006-01-09 12:45:37 -05:00
Ken Martin 74eaecfc3e ENH: cleanups 2005-12-15 14:17:43 -05:00
Bill Hoffman b7fa820118 ENH: add documentation support for modules 2005-12-14 13:51:08 -05:00
Bill Hoffman f81412aedf ENH: if qt4 qmake is found then set QT_QMAKE_EXECUTABLE to that value so that the same one will be used in FindQt4.cmake 2005-09-14 09:12:50 -04:00
Bill Hoffman 16ef79b555 ENH: fix if statement 2005-09-13 08:52:19 -04:00
Bill Hoffman a9344a547b ENH: add docs for QT_REQUIRED 2005-09-12 22:46:13 -04:00
Bill Hoffman 9405e30218 ENH: more findqt fixes 2005-09-12 22:39:12 -04:00
Bill Hoffman 74918bfc87 ENH: add new place to search for qt4 in registry 2005-09-12 11:43:24 -04:00
Bill Hoffman 7a330b9cbc ENH: fix typo 2005-09-12 11:25:22 -04:00
Bill Hoffman 1b421ccf75 ENH: add a better message 2005-09-12 10:33:55 -04:00
Bill Hoffman 71873903fc ENH: add some messages not errors for findqt 2005-09-12 09:36:50 -04:00
Bill Hoffman f52977a9f7 ENH: make sure the correct qmake is used 2005-09-12 09:00:55 -04:00
Bill Hoffman f9a3e38bfb ENH: only print errors if QT_REQUIRED is set 2005-09-10 22:36:58 -04:00
Bill Hoffman f8c259b443 BUG: try to fix qt problems 2005-09-10 10:33:10 -04:00
Bill Hoffman afbc9b7b07 ENH: clean up the find qt stuff some 2005-09-09 21:51:23 -04:00
Bill Hoffman b66c08fc40 ENH: try to fix this find qt stuff 2005-09-09 17:04:28 -04:00
Bill Hoffman 44d079f558 ENH: make FindQt default to qt3 and print a message, and add CheckQtInstalled.cmake 2005-09-09 11:32:52 -04:00
Bill Hoffman df37d871c4 ENH: fixed up qt stuff from Clinton Stimpson 2005-08-10 08:48:03 -04:00
Bill Hoffman 49b7c37544 ENH: add advanced values 2005-08-02 09:55:14 -04:00
Bill Hoffman 380f8f6b4b ENH: make sure qmake is on the machine before running it 2005-07-20 12:48:12 -04:00
Bill Hoffman 300e6c98c1 ENH: fix qt bug 2005-07-18 08:47:52 -04:00
Bill Hoffman 8d418fb898 ENH: fix hard coded include from patch 2005-07-15 12:41:07 -04:00
Bill Hoffman 7ea6617b07 ENH: fix hard coded include from patch 2005-07-15 12:39:39 -04:00
Bill Hoffman bd88a6f6ce ENH: fix hard coded include from patch 2005-07-15 12:39:14 -04:00
Bill Hoffman dc1426b6a3 ENH: add new qt stuff from warfield@bwh.harvard.edu, thanks 2005-07-15 12:14:47 -04:00
Brad King 100d856cb0 ENH: Added search locations for a FreeBSD location. Contributed by Alexander Neundorf. 2005-06-07 08:44:30 -04:00
Brad King 290ffc01b6 ENH: Removing extra 64-bit search paths. They are now constructed automatically from the paths listed. 2005-04-07 14:27:01 -04:00
Brad King 76f9050026 ENH: Adding support for 64-bit library paths. Contributed by Peter Vanroose. 2005-04-07 13:46:02 -04:00
Bill Hoffman 590ca03884 FIX: fix for bug 1409 2005-02-17 10:45:41 -05:00
Andy Cedilnik 0e67feb17a ENH: Use FIND_PACKAGE instead of INCLUDE(Find... 2004-09-10 11:15:07 -04:00
Andy Cedilnik ad4f98f3cf ENH: Cleanup. Use relative path to modules 2004-08-26 22:52:53 -04:00
Bill Hoffman 0220a85e33 ENH: remove verbose QT message 2004-08-05 11:59:20 -04:00
Bill Hoffman f929104ae8 BUG: put back flags to maintain backwards compatibility 2004-07-22 10:59:34 -04:00
Andy Cedilnik b0d86400d9 BUG: These regular expressions were wrong because \\t does not match tab. Also, this fix prevents whole file to be dumped to the cache 2004-07-13 10:03:32 -04:00
Bill Hoffman 0e0eec1162 merge in fixes from neundorf at kde org, bug 869 2004-07-09 15:38:41 -04:00
Bill Hoffman 6ccbfe9795 clean up commands so they don't need extra variable 2004-06-16 09:44:03 -04:00
Bill Hoffman 44803a00c5 ENH: look for qtmoc in some other places 2004-05-20 16:26:54 -04:00
Andy Cedilnik de30a184a2 ENH: Add QT_ASSISTANTCLIENT_LIBRARY support. Fixes Bug #425 - Suggsted mod to FindQt.cmake to handle qassistantclient.lib 2003-12-29 14:19:07 -05:00
Andy Cedilnik 8a0e3c103b ENH: Make it work for QT 2.3 non commercial on windows 2003-08-01 19:13:38 -04:00
Andy Cedilnik cb4e99f712 ENH: Fix indentation 2003-08-01 16:48:07 -04:00
Andy Cedilnik 7762431bb0 ENH: when linking in QT, we should also link DL, since QT uses them 2003-07-30 15:38:58 -04:00
Andy Cedilnik 9549a5f1dd ENH: QT if it is multi threaded should link in threads 2003-07-30 13:39:08 -04:00
Andy Cedilnik f0a9aa814e ENH: Use FindX11 when doing Qt on unix 2003-07-29 17:15:19 -04:00
Andy Cedilnik 64db4e2cd8 ENH: More locations 2003-05-28 07:53:50 -04:00