https://github.com/Kitware/CMake

sort by:
Revision Author Date Message Commit Date
5744b29 STYLE: Move Module commands to lower case Separate lower case conversion for Modules from internal CMake build. This changes all the CMake key words to lower case. The primary reason for changing key words is that all documentation for CMakeLists.txt now shows the key words as lower case. Even the printed “Mastering CMake v5” uses lower case. Se previous patch commit message for extensive instructions on how this conversion was done. 30 June 2012, 01:17:27 UTC
5af78c0 STYLE: Move CMake commands match new conventions Separate lower case conversion for build. This changes all the CMake key words to lower case. The primary reason for changing key words is that all documentation for CMakeLists.txt now shows the key words as lower case. Even the printed “Mastering CMake v5” uses lower case. I’ve come across this several times in my class where students stumble over the fact that the documentation about Cmake does not match the implementation in ITK. A script (a wrapper around a vim macro) written that can make these substituions reliably (Tested on the BRAINS tree, the Slicer3 tree, CMake and the ITK tree without causing any errors). More complete documentation can be found in ITK/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt CMake files are taken as a reference materials for many other tools, and the conventions shown in these files are often copied and pasted in many other packages. By making these consistent, a more uniform look and feel can be acheived across cmake compliant packages. HOW TO REPLICATE: This is documentation for the process to convert all CMakeLists.txt files to lower case format (as seems to be the default style in all recent documentation). Step #1: Determine all the cmake commands: TMP_DIR=/tmp cmake --help-command-list > ${TMP_DIR}/firstpass_script.vi Step #2: Use vim to convert the list into a vim compliant script file that can be applied to each file: Open firstpass_script.vi in vim, and issue the following substitution: vim ${TMP_DIR}/firstpass_script.vi :%s/^\(.*\)/:%s#\\<\U\1\\> *(#\l\1(#\ge/ge <<< Add ":%s/ *$//ge" to remove end of line spaces. <<< Add ":wqa" to end of the vim script >>> <<< Add ":%s#\<SUBDIRS\> *(#add_subdirectory(#ge" >>> :w! /tmp/convert_cmake_to_lowercase.vim This will create a file that is suitable for using as a vim batch script. Step #3: Make list of files to convert =============================================================== \#!/bin/bash VIM_SCRIPT=$(dirname $0)/convert_cmake_to_lowercase.vim PROCESS_DIR=$1 FILESTOCONVERT=/tmp/FileToConvert find . -name CMakeLists.txt |fgrep -v svn > ${FILESTOCONVERT} find . -name "*.cmake*" |fgrep -v svn >>${FILESTOCONVERT} if [ ! -f "${VIM_SCRIPT}" ]; then echo "${VIM_SCRIPT} not found" exit -1· fi old_IFS=$IFS IFS=$'\n' for ff in $(cat ${FILESTOCONVERT}|fgrep -v svn); do echo "PROCESSING $ff" vim -S ${VIM_SCRIPT} $ff if [ -f stop ]; then exit -1 fi done IFS=$old_IFS =============================================================== 30 June 2012, 01:11:09 UTC
7ecbf9d CMake Nightly Date Stamp 29 June 2012, 04:01:05 UTC
3cb7eef CMake Nightly Date Stamp 28 June 2012, 04:01:05 UTC
61dbddd CMake Nightly Date Stamp 27 June 2012, 04:01:06 UTC
bd67f75 CMake Nightly Date Stamp 26 June 2012, 04:01:04 UTC
eb0922a CMake Nightly Date Stamp 25 June 2012, 04:01:02 UTC
2fdc551 CMake Nightly Date Stamp 24 June 2012, 04:01:03 UTC
72ce588 CMake Nightly Date Stamp 23 June 2012, 04:01:04 UTC
0302287 CMake Nightly Date Stamp 22 June 2012, 04:01:06 UTC
b0e5079 Merge topic 'eliminate-warnings' 91d945a Remove unused ivars to eliminate compiler warnings 24c4f18 Remove unused ivars to eliminate compiler warnings 21 June 2012, 15:55:44 UTC
4042b50 Merge topic 'CMakeDetermineCCompiler-clear-init' b9ccaf5 CMakeDetermineCCompiler: Fix typo "_CXX_" -> "_C_" (#13330) 21 June 2012, 15:55:34 UTC
fd8fc27 Merge topic 'qt4-macros' 0331a5a Qt4Macros: add some quotes to prevent damage from spaces in the paths f46903b Qt4Macros: improve basename extraction in QT4_ADD_DBUS_INTERFACES aa841ae FindQt4: extend documentation 21 June 2012, 15:55:24 UTC
ae6f9b0 Merge topic 'module-no-soname' 56148fd Do not crash on SHARED library without language (#13324) 21 June 2012, 15:55:15 UTC
4870918 Merge topic 'CTestUpdateGit-safecrlf' 5c153c6 Make CTest.UpdateGIT robust to Git safecrlf on Windows 21 June 2012, 15:55:05 UTC
e5ebb77 Merge topic 'no-source-language-crash' 2c2fbaf Do not crash on unknown source language (#13323) 21 June 2012, 15:54:52 UTC
14576fc Merge topic 'find-devil-doc-formatting' af988e8 FindDevIL: clean up documentation formatting 21 June 2012, 15:54:25 UTC
3948cb4 Merge topic 'use-string-to-cmake-path' 3505e68 replace open coded versions of file(TO_CMAKE_PATH) 21 June 2012, 15:54:14 UTC
934f553 Merge topic 'no-explicit-usr-search' e93ac6f do not explicitely specify /usr and /usr/local as search paths 21 June 2012, 15:54:02 UTC
cfaaa99 Merge topic 'fix-typos' 188b96b fix some typos 21 June 2012, 15:53:52 UTC
89cb1c3 Merge topic 'run_compile_commands-aix-gcc-2.9' 96b66a4 Avoid string.clear and string.push_back (#13319) 21 June 2012, 15:53:43 UTC
7824172 Merge topic 'test-FindPackageModeMakefileTest' 09ff191 Fix FindPackageMode test Makefile (#13314) 21 June 2012, 15:53:34 UTC
b71ce03 Merge topic 'test-Assembler-C-flags' d686517 Tests/Assembler: Assemble and link with same flags (#13314) 21 June 2012, 15:53:21 UTC
9f80ad7 CMake Nightly Date Stamp 21 June 2012, 04:01:06 UTC
91d945a Remove unused ivars to eliminate compiler warnings 20 June 2012, 21:44:10 UTC
24c4f18 Remove unused ivars to eliminate compiler warnings 20 June 2012, 21:43:37 UTC
b9ccaf5 CMakeDetermineCCompiler: Fix typo "_CXX_" -> "_C_" (#13330) Initialize CMAKE_C_COMPILER_INIT before using it, rather than CMAKE_CXX_COMPILER_INIT. 20 June 2012, 19:38:53 UTC
0331a5a Qt4Macros: add some quotes to prevent damage from spaces in the paths 20 June 2012, 16:31:38 UTC
f46903b Qt4Macros: improve basename extraction in QT4_ADD_DBUS_INTERFACES -convert the filename to lowercase before the extraction, this allows this to work even if the filename as uppercase ".XML" extension -use get_filename_component(... NAME) to strip the path 20 June 2012, 16:31:37 UTC
aa841ae FindQt4: extend documentation -refer to AUTOMOC from QT4_AUTOMOC -mention how source file properties influence QT4_ADD_DBUS_INTERFACE 20 June 2012, 16:31:37 UTC
56148fd Do not crash on SHARED library without language (#13324) Since commit e1409ac5 (Support building shared libraries or modules without soname, 2012-04-22) CMake crashes on the code add_library(foo SHARED foo.nolang) because the logic to lookup the language's soname flag was moved from cmTarget::GetLibraryNames to cmMakefile::GetSONameFlag without its check for a NULL language. Restore the check for NULL. Add RunCMake.Languages test to cover language error cases like this one. 20 June 2012, 15:26:05 UTC
5c153c6 Make CTest.UpdateGIT robust to Git safecrlf on Windows If the user has configured 'core.autocrlf' and 'core.safecrlf' then 'git submodule add' will fail to 'git add' the '.gitmodules' file because it has LF newlines, at least as of Git 1.7.11. Disable 'core.safecrlf' in our test repository to avoid the problem. 20 June 2012, 14:19:44 UTC
2c2fbaf Do not crash on unknown source language (#13323) If a source file extension is not recognized as any language then src.GetLanguage() may return NULL. Check the result before dereferencing in cmLocalGenerator::GetObjectFileNameWithoutTarget. 20 June 2012, 12:59:54 UTC
30305b9 CMake Nightly Date Stamp 20 June 2012, 04:01:06 UTC
af988e8 FindDevIL: clean up documentation formatting 19 June 2012, 19:09:42 UTC
3505e68 replace open coded versions of file(TO_CMAKE_PATH) 19 June 2012, 19:08:44 UTC
e93ac6f do not explicitely specify /usr and /usr/local as search paths If not explicitely excluded these paths are searched automatically anyway. 19 June 2012, 19:06:27 UTC
188b96b fix some typos 19 June 2012, 19:05:14 UTC
54431e3 Merge topic 'test-VSGNUFortran-C-comment' 307d45e Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 19 June 2012, 18:43:47 UTC
525813a Merge topic 'test-IncludeDirectories-eof' cad6921 Tests/IncludeDirectories: Files must end in a newline (#13314) 19 June 2012, 18:43:34 UTC
3f8c907 Merge topic 'CPackDeb-docUpdate' 5ac6ca0 CPackDeb add missing documentation for some CPACK_DEBIAN_xx variables. 19 June 2012, 18:43:20 UTC
7ddbdde Merge topic 'doc-set-command' f2c1f24 Improve documentation of set command (#13269) 19 June 2012, 18:43:09 UTC
d3a61d1 Merge topic 'FindBullet-LinearMath_Debug' 4393b3b FindBullet: Add missing math library name (#13309) 19 June 2012, 18:42:51 UTC
565744b Merge topic 'ninja-cldeps' eb410e8 Ninja: disable cldeps for bcc32, it's too old, and ninja would also not build 5ead31d Ninja: try work around for bcc32 bug 1333b57 Ninja: build server fixes 9081e3a remove warning about unused parameter f430bea Ninja: maybe this fixes the bcc32 build f2c1288 Ninja: msvc6 for-scoping 44b9bbc Ninja: build with old msvc versions 57156a5 Ninja: build server fixes f1abdce Ninja: some bytes of the rc files couldn't be piped correctly 2de963d Ninja: don't remove space between command and parameters 50b6f33 Ninja: build cmcldeps with mingw c05653e Ninja: try to make GetProcessId visible ab245ff Ninja: but cl supports /nologo ... bf58e9a Ninja: no /nologo option in old rc.exe 2fb07fc Ninja: Eclipse and KDevelop fixes for ninja 518c065 Ninja: don't pollute build dir with preprocessed rc files ... 19 June 2012, 18:42:41 UTC
8d198a7 Merge topic 'FailIfMocFails-13299' e4a2d5f automoc: better error handling (#13299) 19 June 2012, 18:42:32 UTC
fbfddc7 Merge topic 'ninja-enable-on-windows' 2077e98 Ninja: Enable the ninja generator by default on Windows. 19 June 2012, 18:42:23 UTC
aa2c6d0 Merge topic 'no-std-stringstream' 32313fd Merge branch 'ninja-rspfile' into no-std-stringstream e3a1f72 Ninja: find mingw's resource compiler c60557e Ninja: don't break because of empty commands 128fe5d Ninja: also create rspfile rules 0266c9b Ninja: check for valid pointer 5aab7f9 Ninja: 30000 is too long for windows cmd ad4a768 Ninja: add response file support on Windows 19 June 2012, 18:42:11 UTC
5ac6ca0 CPackDeb add missing documentation for some CPACK_DEBIAN_xx variables. Inspired-By: Doug Linden <linderd@iinet.net.au> 19 June 2012, 18:32:16 UTC
96b66a4 Avoid string.clear and string.push_back (#13319) Compiler "gcc version 2.9-aix51-020209" does not offer them. 19 June 2012, 18:21:34 UTC
09ff191 Fix FindPackageMode test Makefile (#13314) Use CXXFLAGS in the makefile's link rule since it invokes the C++ compiler front-end. Retool the makefile not to require GNU Make. Using backticks instead of $(shell ...) is safe so long as one guards against the possibility of backslashes getting inside the backticks, so use temporary files and shell variables to avoid them. 19 June 2012, 12:26:01 UTC
4889188 CMake Nightly Date Stamp 19 June 2012, 04:01:05 UTC
d686517 Tests/Assembler: Assemble and link with same flags (#13314) The test uses the C compiler as the assembler so use the C flags for ASM too. This is important when the flags specify the target ABI. 18 June 2012, 20:21:54 UTC
307d45e Tests/VSGNUFortran: Avoid C++ comment in C code (#13314) 18 June 2012, 20:18:27 UTC
cad6921 Tests/IncludeDirectories: Files must end in a newline (#13314) The HP compiler really really wants source files to end with a newline. 18 June 2012, 20:16:55 UTC
f2c1f24 Improve documentation of set command (#13269) 18 June 2012, 14:02:13 UTC
4393b3b FindBullet: Add missing math library name (#13309) Add "LinearMath_Debug" to the list of names to search for BULLET_MATH_LIBRARY_DEBUG. The _Debug name is present in all other lines already. Now the script manages to find all debug&release libraries on my system. 18 June 2012, 12:29:41 UTC
eb410e8 Ninja: disable cldeps for bcc32, it's too old, and ninja would also not build 18 June 2012, 11:39:29 UTC
1d8199f CMake Nightly Date Stamp 18 June 2012, 04:01:05 UTC
5ead31d Ninja: try work around for bcc32 bug 17 June 2012, 08:17:19 UTC
1333b57 Ninja: build server fixes Why does the other compiler give no error? Seems there is somewhere a "using". 17 June 2012, 08:09:10 UTC
7eaaea1 CMake Nightly Date Stamp 17 June 2012, 04:01:05 UTC
9081e3a remove warning about unused parameter 16 June 2012, 10:58:06 UTC
f430bea Ninja: maybe this fixes the bcc32 build 16 June 2012, 10:54:10 UTC
f2c1288 Ninja: msvc6 for-scoping 16 June 2012, 10:51:25 UTC
44b9bbc Ninja: build with old msvc versions 16 June 2012, 10:40:59 UTC
57156a5 Ninja: build server fixes - disable cldeps on cygwin - don't "use" namespace std 16 June 2012, 10:31:50 UTC
486c093 CMake Nightly Date Stamp 16 June 2012, 04:01:04 UTC
f1abdce Ninja: some bytes of the rc files couldn't be piped correctly Write to a file again but generate it in the object dir 15 June 2012, 16:56:34 UTC
2de963d Ninja: don't remove space between command and parameters 15 June 2012, 15:52:17 UTC
50b6f33 Ninja: build cmcldeps with mingw 15 June 2012, 11:46:49 UTC
c05653e Ninja: try to make GetProcessId visible 15 June 2012, 11:38:52 UTC
ab245ff Ninja: but cl supports /nologo ... 15 June 2012, 11:07:05 UTC
bf58e9a Ninja: no /nologo option in old rc.exe 15 June 2012, 10:49:01 UTC
2fb07fc Ninja: Eclipse and KDevelop fixes for ninja Thx to Claus Klein 15 June 2012, 10:14:13 UTC
518c065 Ninja: don't pollute build dir with preprocessed rc files 15 June 2012, 08:40:04 UTC
5984e49 CMake Nightly Date Stamp 15 June 2012, 04:01:06 UTC
41c28dc Ninja: be more accurate when estimating the command line length 15 June 2012, 00:00:15 UTC
f13a6a0 Ninja: undo all the NOSHELL patches 14 June 2012, 23:43:08 UTC
f083211 Merge topic 'remove-unnecessary-bz2-files' 7918998 BZip2: Remove unnecessary *.bz2 files from CMake source tree 14 June 2012, 20:29:18 UTC
88115fe Merge topic 'EclipseParallelMakeForBuildProject' 414bf67 Eclipse: parallel build also for "Build project" #13287 14 June 2012, 20:29:08 UTC
2d1c25d Merge topic 'install-case-sensitive-mac' a41557a install: Fix FILES_MATCHING on case-sensitive Mac filesystems (#13177) 14 June 2012, 20:28:54 UTC
a7ae34a Merge topic 'RemoveASMDebugOutput' 0b343cb ASM compiler detection: remove debug output (#13270) 14 June 2012, 20:28:44 UTC
e4a2d5f automoc: better error handling (#13299) automoc now fails immediately if moc fails, instead of continuing and letting the build fail later on. Alex 14 June 2012, 20:27:22 UTC
555bda4 Ninja: Restructure code to work with the Borland compilers Should fix the Borland dashboard errors. 14 June 2012, 17:39:39 UTC
69bc513 Ninja: remove nop line 14 June 2012, 16:16:19 UTC
f1aa026 Ninja: build with old vc versions 14 June 2012, 16:02:43 UTC
eda3075 Ninja: sh needs something befor and after && 14 June 2012, 15:26:01 UTC
1d55ea5 Ninja: fix Linux build 14 June 2012, 14:01:35 UTC
6e6886d Ninja: ninja now also could read parentheses in .d files 14 June 2012, 12:37:08 UTC
6546086 Ninja: don't use shell when cmake is called directly When linking with cmake and vs_link_* the command line could be too long for cmd.exe, which needs not to be called in this case. (was not cached by a test) Introduce rules which don't use the shell and use this rule when there are no pre or post step. For free we get a small speedup, because cmd is then not called. Also be more accurate when estimating the command line length. 14 June 2012, 12:22:56 UTC
220fdc1 Ninja: cmcldeps - don't depend on argument order - update help 14 June 2012, 08:48:32 UTC
77cb7b5 Ninja: suppress startup logos Having Ninja's smart printing we are more allergic on unneeded tool output. 14 June 2012, 08:48:31 UTC
7717d96 CMake Nightly Date Stamp 14 June 2012, 04:01:05 UTC
2077e98 Ninja: Enable the ninja generator by default on Windows. All tests are passing as of this morning on the CMake dashboard in the Nightly Expected section. Nice job to all the Ninja+CMake contributors. Congrats! 13 June 2012, 21:25:24 UTC
7918998 BZip2: Remove unnecessary *.bz2 files from CMake source tree We had complaints that people couldn't install the CMake source tarball on some secure systems because there were "corrupt bz2 files" in it... We do not use these sample*.bz2 files anyhow in the CMake build, so we'll just remove them. 13 June 2012, 21:08:25 UTC
e2ffa14 Revert "Millenium update: 79 * (16/9)/(4/3) = 105" This reverts commit 7b91c3dfac88b2d01a8bac71e800032fcd03ec54. (Nice try, but we're going to keep our 79 character line length limit unless there is discussion first, and everybody agrees on a new higher value...) 13 June 2012, 21:04:02 UTC
414bf67 Eclipse: parallel build also for "Build project" #13287 Use ${CMAKE_ECLIPSE_MAKE_ARGUMENTS} also for the overall build command, not only for the per-target commands. Alex 13 June 2012, 20:49:45 UTC
ab8a2a5 Ninja: onyl use pre processor for rc file parsing 13 June 2012, 17:20:01 UTC
4b43999 Ninja: remove unused CommentStream 13 June 2012, 15:23:31 UTC
54a388b Ninja: extract dependencies for .rc files with msvc tools rc.exe doesn't support /showIncludes. Because .rc files also #include stuff we can misuse cl.exe to get the included files. Done one the fly by cmcldeps. 13 June 2012, 15:14:16 UTC
back to top