Daniele E. Domenichelli
15610bb5b1
Drop use of configure_file IMMEDIATE option
...
Since commit 7d47c693
(Drop compatibility with CMake < 2.4, 2013-10-08)
we no longer need to use the configure_file IMMEDIATE option to support
compatibility modes less than 2.0.
2013-11-13 10:12:17 -05:00
Kitware Robot
f051814ed0
Convert builtin help to reStructuredText source files
...
Run the convert-help.bash script to convert documentation:
./convert-help.bash "/path/to/CMake-build/bin"
Then remove it.
2013-10-15 14:12:03 -04: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
Todd Gamblin
2cde67a781
Modules: Fix spelling 'To distributed' -> 'To distribute'
2010-08-09 08:48:31 -04:00
Brad King
3a666595c9
Convert CMake non-find modules to BSD License
...
This adds copyright/license notification blocks CMake's non-find
modules. Most 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:46:51 -04:00
Ken Martin
8e9a6beccc
ENH: centralized locaiton of CMakeFiles setting
2006-06-14 12:28:32 -04:00
Brad King
f0a1da00c1
ENH: Made Check* modules more consistent and well documented. Added CMAKE_REQUIRED_DEFINITIONS option.
2006-02-09 19:23:18 -05:00
Ken Martin
4bdca3b404
ENH: put CmakeTmp into CMakeFiles
2006-01-12 13:49:32 -05:00
Ken Martin
d2689c95a1
ENH: some style fixes for the book
2005-12-15 10:41:19 -05:00
Bill Hoffman
b7fa820118
ENH: add documentation support for modules
2005-12-14 13:51:08 -05:00
Andy Cedilnik
b338aad70c
ENH: Cleanup and unify
2005-11-04 09:28:09 -05:00
Ken Martin
0a5b9db60b
DOC: better documentaiton
2005-11-02 13:51:59 -05:00
Ken Martin
c6b011e35e
ENH: put cmake files intoa CMakeFiles subdir to clean up bin tree
2005-07-29 09:19:25 -04:00
Bill Hoffman
f248295d5d
ENH: fixes for optional flag arguments to check include macros
2004-04-28 10:00:11 -04:00
Andy Cedilnik
8149dbed29
ENH: Cleanups and add missing CMakeOutput.log and CMakeError.log appending. Close Bug #136 - Verify that all modules that do try compile produce CMakeError.log and CMakeOutput.log
2003-08-08 11:59:07 -04:00
Andy Cedilnik
d6ebc123f7
ENH: Extra new line after output
2003-07-17 14:55:45 -04:00
Andy Cedilnik
a17587c244
ENH: Replace WRITE_FILE with FILE(WRITE and FILE(APPEND. Replace MAKE_DIRECTORY with FILE(MAKE_DIRECTORY, replace STRING(ASCII things
2003-07-11 14:14:03 -04:00
Andy Cedilnik
e720b84d6b
Add required flags
2003-01-03 19:23:19 -05:00
Bill Hoffman
bd74882d3e
ENH: use CMAKE_ROOT and not PROJECT_ for try compile stuff, this allows projects within projects to have different languages
2002-12-17 14:54:25 -05:00
Brad King
7e824e83a9
ENH: Don't repeat check even if answer was no.
2002-12-13 14:58:55 -05:00
Andy Cedilnik
5b17658c91
Add more messages, make messages look the same, add checks if test was already successfull
2002-11-18 10:52:09 -05:00
Bill Hoffman
fe8428a3ee
ENH: add status messages
2002-11-13 16:31:12 -05:00
Andy Cedilnik
ccafaa6bce
Add append to write_file
2002-10-29 13:34:12 -05:00
Andy Cedilnik
1bd6766643
Set variable to either 1 or empty string instead of TRUE and FALSE
2002-09-25 17:25:02 -04:00
Andy Cedilnik
28159ebd71
Fix tests for new trycompile and tryrun
2002-09-20 15:01:27 -04:00
Andy Cedilnik
1d0d685049
Simplify checking for headers
2002-09-20 14:16:43 -04:00
Andy Cedilnik
5a08e1b6dc
Add macro which checks if the header file exists
2002-09-20 13:40:39 -04:00