summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeBackwardCompatibilityC.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-5/+5
| | | | | | | | | | | | | | | | | 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
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-43/+43
| | | | | | | | | | | | | | | | | 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
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-2/+2
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Use one arch for 1.4-compatible check_type_sizeBrad King2009-12-011-0/+16
| | | | | | | | | The CMakeBackwardCompatibilityC module provides some try-compile results that were automatically provided by CMake 1.4. When performing the checks for OS X universal binaries we just pick one architecture to get through the checks without error. Since CMake 1.4 did not support any universal binaries, projects that want them should not depend on this compatibility module anyway.
* Convert CMake non-find modules to BSD LicenseBrad King2009-09-281-0/+13
| | | | | | | 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.
* ENH: add documentation support for modulesBill Hoffman2005-12-141-0/+1
|
* BUG: Fix try-compile for sys/prctl.h. It needs to include sys/types.h first ↵Brad King2005-04-261-1/+3
| | | | according to the man page.
* ENH: Cleanup. Use relative path to modulesAndy Cedilnik2004-08-271-7/+7
|
* Fix FindX11 to match conventionAndy Cedilnik2003-01-081-6/+6
|
* BUG: Don't add -I/usr/include as an X_CFLAGS setting.Brad King2003-01-021-2/+6
|
* ENH: Renamed Modules/CheckSizeOf to Modules/CheckTypeSize for consistency ↵Brad King2002-12-301-1/+1
| | | | with the macro name that is defined by the module.
* FIX: make CMAKE_X_LIBS and CMAKE_X_CFLAGS advancedSebastien Barre2002-12-201-2/+5
|
* ENH: FindX11.cmake module now almost fully duplicates old configure ↵Brad King2002-12-171-7/+7
| | | | functionality.
* ENH: unify EnableLanguage across all generatorsBill Hoffman2002-12-051-33/+43
|
* BUG: fix for thread and cache overrideBill Hoffman2002-11-181-5/+5
|
* fix for nsl library and X11Bill Hoffman2002-11-131-1/+0
|
* add find threads checkBill Hoffman2002-11-121-0/+24
|
* clean up flags with _init flagsBill Hoffman2002-11-111-0/+1
|
* Do this the right wayAndy Cedilnik2002-10-291-2/+4
|
* Add check for big endian in backward compatibility scriptsAndy Cedilnik2002-10-241-0/+3
|
* Improve backward compatibility, so that all backward compatibility stuff is ↵Andy Cedilnik2002-09-241-0/+22
in two modules; fix invoking of try_compile; add checking for header files and sizes of types