summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* cmAlgorithms: Add a range adaptor and API for adjusting a range.Stephen Kelly2015-02-111-0/+19
|
* Use cmJoin to accumulate string ranges.Stephen Kelly2015-02-112-10/+2
| | | | | | | | Avoid using the std::accumulate algorithm which is designed for numeric types, not complex types. It introduces unneccessary copies. Initialize variables where they are populated.
* cmAlgorithms: Add a Range container and adaptor method.Stephen Kelly2015-02-111-0/+21
| | | | | | | | This can make a pair of iterators API compatible with the cmJoin algorithm and other range-based algorithms. Accept different iterator types in the cmRange adaptor so that a const and non-const iterator are accepted.
* Replace common loop pattern with cmJoinStephen Kelly2015-02-116-81/+11
|
* Convert loops populating maybe-empty content into the common pattern.Stephen Kelly2015-02-113-17/+30
|
* Convert loops into the commonly used pattern.Stephen Kelly2015-02-112-32/+25
|
* cmMacroCommand: Remove counting variable.Stephen Kelly2015-02-111-9/+4
| | | | Start iteration at correct starting point directly.
* cmMacroCommand: Execute loop only if it has an effect.Stephen Kelly2015-02-111-9/+12
|
* cmMacroCommand: Extract iteration starting point.Stephen Kelly2015-02-111-2/+3
|
* cmMacroCommand: Replace a loop with cmJoin.Stephen Kelly2015-02-111-3/+3
|
* Split cmAlgorithms into a separate header file.Stephen Kelly2015-02-1011-134/+161
|
* Merge topic 'cmStandardIncludes-cleanup'Brad King2015-02-1013-12/+20
|\ | | | | | | | | | | | | af65da0a cmStandardIncludes: Remove list include. e848cc50 cmStandardIncludes: Remove deque include. 5fea6898 cmStandardIncludes: Remove some VS6 workarounds.
| * cmStandardIncludes: Remove list include.Stephen Kelly2015-02-0611-1/+17
| | | | | | | | Include it only where used.
| * cmStandardIncludes: Remove deque include.Stephen Kelly2015-02-063-1/+3
| | | | | | | | Include it only where used.
| * cmStandardIncludes: Remove some VS6 workarounds.Stephen Kelly2015-02-061-10/+0
| | | | | | | | | | Added in commit v2.6.0~2824 (COMP: Fix warnings in system headers on VS6., 2006-08-29), but no longer needed.
* | Merge topic 'use-algorithms'Brad King2015-02-1024-147/+74
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d8639733 cmSystemTools: Remove unnecessary comparison. 803317aa cmSystemTools: Early return if size makes later comparison false. 11093a03 Replace temporary bool by inlining warning condition. 6cd2ee95 Replace loop with member algorithm. 94e993a0 cmComputeLinkDepends: Remove temporary iterator copy. 69dbe51b Replace loop with algorithm. 683fafea Replace a loop with std::transform. 63f584b6 Replace while loop with member insert. 74c4d9d2 Take a size check outside of an inner loop. 71d47115 Use insert member instead of back_inserter. 39622c99 Convert while loop to member insert. a7fcc148 Convert loop to algorithm. d46c4f07 Extract a prefix variable from loop. d59913f0 Take computation out of loop. 3f3db744 cmMakefile: Remove ExpandSourceListArguments. bd990c80 Remove use of ExpandSourceListArguments. ...
| * | cmSystemTools: Remove unnecessary comparison.Stephen Kelly2015-02-061-1/+1
| | | | | | | | | | | | We already know the string is uppercase.
| * | cmSystemTools: Early return if size makes later comparison false.Stephen Kelly2015-02-061-0/+4
| | |
| * | Replace temporary bool by inlining warning condition.Stephen Kelly2015-02-061-15/+11
| | |
| * | Replace loop with member algorithm.Stephen Kelly2015-02-061-6/+5
| | |
| * | cmComputeLinkDepends: Remove temporary iterator copy.Stephen Kelly2015-02-061-2/+1
| | |
| * | Replace loop with algorithm.Stephen Kelly2015-02-061-7/+3
| | |
| * | Replace a loop with std::transform.Stephen Kelly2015-02-061-5/+4
| | |
| * | Replace while loop with member insert.Stephen Kelly2015-02-062-16/+2
| | |
| * | Take a size check outside of an inner loop.Stephen Kelly2015-02-062-10/+10
| | |
| * | Use insert member instead of back_inserter.Stephen Kelly2015-02-061-2/+1
| | |
| * | Convert while loop to member insert.Stephen Kelly2015-02-061-5/+1
| | |
| * | Convert loop to algorithm.Stephen Kelly2015-02-061-5/+2
| | |
| * | Extract a prefix variable from loop.Stephen Kelly2015-02-061-5/+2
| | |
| * | Take computation out of loop.Stephen Kelly2015-02-061-1/+3
| | |
| * | cmMakefile: Remove ExpandSourceListArguments.Stephen Kelly2015-02-052-24/+0
| | |
| * | Remove use of ExpandSourceListArguments.Stephen Kelly2015-02-055-28/+13
| | | | | | | | | | | | By now, it is only an expensive copy.
| * | cmLocalGenerator: Replace loop with find_first_not_ofStephen Kelly2015-02-051-5/+1
| | |
| * | Remove use of cmsys_stl.Stephen Kelly2015-02-0510-22/+22
| |/ | | | | | | It is not needed.
* | Merge topic 'makefile-progress-improvements'Brad King2015-02-1010-122/+157
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 63668954 Help: Add notes for topic 'makefile-progress-improvements' ae775fe8 Makefile: Change link step message color to bold green 7bb50e4a Makefile: Add progress to link step messages c6ada827 Makefile: Print all color escape sequences before newline 8521fdf5 Makefile: Fix output during parallel builds (#12991) 69ac6d27 bootstrap: Enable color Makefile output
| * | Makefile: Change link step message color to bold greenBrad King2015-02-071-1/+1
| | | | | | | | | | | | Avoid displaying red messages when no error has occurred.
| * | Makefile: Add progress to link step messagesBrad King2015-02-072-2/+10
| | |
| * | Makefile: Print all color escape sequences before newlineBrad King2015-02-061-3/+9
| | | | | | | | | | | | Ensure that the escape sequences do not leak across lines.
| * | Makefile: Fix output during parallel builds (#12991)Brad King2015-02-066-93/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace use of separate "cmake -E cmake_progress_report" and "cmake -E cmake_echo_color" commands to report the progress and message portions of build output lines with --progress-* options to the latter to print everything with a single command. The line buffering of the stdout FILE stream should cause the whole line to be printed with one atomic write. This will avoid inter-mixing of line-wise messages from different processes during a parallel build.
| * | bootstrap: Enable color Makefile outputBrad King2015-02-054-23/+4
| |/ | | | | | | | | | | Build the needed infrastructure during bootstrap in order to allow "cmake -E cmake_echo_color" to be used unconditionally during generation.
* | Merge topic 'try_compile-quote-module-path'Brad King2015-02-101-1/+1
|\ \ | | | | | | | | | | | | 220c427e try_compile: Quote the content of CMAKE_MODULE_PATH to allow for spaces
| * | try_compile: Quote the content of CMAKE_MODULE_PATH to allow for spacesNils Gladitz2015-02-091-1/+1
| | |
* | | Merge topic 'no-global-setlocale'Brad King2015-02-108-10/+39
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0f870234 Merge branch 'backport-no-global-setlocale' into no-global-setlocale cd408d93 Add setlocale() calls around use of libarchive APIs (#14934, #15377) 87be2e14 Do not call setlocale() globally in CMake applications (#15377)
| * \ \ Merge branch 'backport-no-global-setlocale' into no-global-setlocaleBrad King2015-02-068-10/+39
| |\ \ \ | | | | | | | | | | | | | | | Resolve conflict in Source/CMakeLists.txt by taking both changes.
| | * | | Add setlocale() calls around use of libarchive APIs (#14934, #15377)Brad King2015-02-064-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libarchive APIs use nl_langinfo(CODESET) for iconv so they need the locale to be set for LC_CTYPE. However, the rest of CMake does not define any behavior for non-ASCII character classification/conversion so we do not want to setlocale() globally. Add a RAII class to save, set, and restore the locale around calls to libarchive APIs. Inspired-by: Clinton Stimpson <clinton@elemtech.com>
| | * | | Do not call setlocale() globally in CMake applications (#15377)Brad King2015-02-064-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert the changes made by commit v3.1.0-rc1~406^2~1 (Encoding: Add setlocale() to applications, 2014-05-30) and commit v3.1.0-rc1~406^2 (Encoding: Change to only set LC_CTYPE, 2014-06-11), and other setlocale calls added later in their spirit. CMake has not been taught how to deal with non-C locales everywhere. We do not define any functionality for character conversions for non-ASCII strings. Another solution will be needed to address the original problem motivating addition of setlocale() calls.
| | * | | CMake 3.1.2v3.1.2Brad King2015-02-041-1/+1
| | | | |
| | * | | Merge branch 'fix-default-install-config' into release-3.1Brad King2015-02-031-9/+5
| | |\ \ \
| | * \ \ \ Merge branch 'backport-fix-cpack-symlink-create-dir' into release-3.1Brad King2015-01-301-0/+12
| | |\ \ \ \
| | | * | | | CPack: Fix packaging of source tarballs with symbolic linksBill Hoffman2015-01-301-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When staging the package installation, if the first file in a directory happens to be a symbolic link, make sure we create the directory before trying to create the link.