summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* CTestCustom: Suppress scanbuild warning on unsigned left shiftBrad King2016-05-271-0/+1
| | | | | | | | | | | The Clang scanbuild tool warns: Utilities/cmliblzma/liblzma/simple/x86.c:106:23: warning: The result of the '<<' expression is undefined src = dest ^ ((1u << (32 - i * 8)) - 1); ~~~^~~~~~~~~~~~~~~ AFAIK overflow of a left shift on an unsigned type is well-defined.
* CTestCustom: Suppress warnings about rand() on OpenBSDBrad King2016-05-271-0/+1
| | | | | | We first suppressed this in commit v3.1.0-rc1~647^2 (CTestCustom: Suppress warnings about rand() and srand() on OpenBSD, 2014-04-12). Add another variant of the warning wording.
* CTestCustom: Suppress Windows manifest unrecognized element warningBrad King2016-05-271-1/+1
| | | | | | Our `cmake.version.manifest` file uses a "compatibility" element for Windows 10 support. Older MS tools warn about it being unknown, so suppress the warning.
* Merge topic 'remove-needless-copies'Brad King2016-05-2733-70/+63
|\ | | | | | | | | | | 27ead963 Remove unnecessary local copies. 618fb23f Pass arguments that are not modified as const&.
| * Remove unnecessary local copies.Daniel Pfeifer2016-05-269-25/+16
| | | | | | | | | | | | | | Use clang-tidy's performance-unnecessary-copy-initialization checker. After applying the fix-its (which turns the copies into const&), revise the changes and see whether the copies can be removed entirely by using the original instead.
| * Pass arguments that are not modified as const&.Daniel Pfeifer2016-05-2625-45/+47
| | | | | | | | | | | | | | Use clang-tidy's performance-unnecessary-value-param checker to find value parameter declarations of expensive to copy types that are not modified inside the function. Ignore findings in kwsys. After applying the fix-its, manually change `const T&` to `T const&`.
* | Merge topic 'remove-needless-c_str'Brad King2016-05-2719-60/+49
|\ \ | | | | | | | | | | | | 1b2bb933 Remove redundant c_str() calls.
| * | Remove redundant c_str() calls.Daniel Pfeifer2016-05-2619-60/+49
| |/ | | | | | | | | Run clang-tidy's readability-redundant-string-cstr checker. Ignore findings in kwsys.
* | Merge topic 'osx-no-warn-sdk-target-mismatch'Brad King2016-05-271-10/+0
|\ \ | | | | | | | | | | | | cffe0ed7 OS X: Drop warning about SDK and deployment target version mismatch
| * | OS X: Drop warning about SDK and deployment target version mismatchBrad King2016-05-261-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | OS X supports using the SDK for any version equal to or newer than the deployment target. There is no reason to warn if the versions do not match exactly. Suggested-by: James Burgess <jamesrburgess@mac.com> Suggested-by: Clinton Stimpson <clinton@elemtech.com>
* | | CMake Nightly Date StampKitware Robot2016-05-271-1/+1
| |/ |/|
* | Merge topic 'liblzma-signed-shift'Brad King2016-05-261-1/+1
|\ \ | | | | | | | | | | | | 8479dc46 liblzma: Avoid possible overflow on signed left shift
| * | liblzma: Avoid possible overflow on signed left shiftBrad King2016-05-251-1/+1
| | | | | | | | | | | | Use an unsigned value to produce the needed mask.
* | | Merge topic 'try_compile-custom-variables'Brad King2016-05-267-74/+118
|\ \ \ | | | | | | | | | | | | | | | | | | | | d256ba07 try_compile: Optionally forward custom platform variables to test project fb4791b3 cmCoreTryCompile: Refactor forwarding of variables to test project
| * | | try_compile: Optionally forward custom platform variables to test projectBrad King2016-05-257-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` variable to specify a list of custom variables to be forwarded to a `try_compile` test project. This will be useful for platform information modules or toolchain files to forward some platform-specific set of variables from the host project (perhaps set in its cache) to the test project so that it can build the same way.
| * | | cmCoreTryCompile: Refactor forwarding of variables to test projectBrad King2016-05-251-74/+60
| |/ / | | | | | | | | | | | | | | | | | | De-duplicate the logic that constructs the cmake `-D` flag used to pass variables into the test project cache. Also subsume variables that were propagated by generating `set()` commands in the project and pass them as cache entries instead.
* | | Merge topic 'fix-variable-watch-leak'Brad King2016-05-261-2/+4
|\ \ \ | | | | | | | | | | | | | | | | 75e3e0d3 cmVariableWatch: Fix potential memory leak
| * | | cmVariableWatch: Fix potential memory leakBrad King2016-05-251-2/+4
| |/ / | | | | | | | | | | | | Teach cmVariableWatch::AddWatch to own the Pair it allocates until it needs to pass ownership to WatchMap.
* | | Merge topic 'cpack-dmg-no-app-link'Brad King2016-05-263-5/+21
|\ \ \ | | | | | | | | | | | | | | | | 3acc29fc CPack/DragNDrop: Optionally disable `/Applications` symlink
| * | | CPack/DragNDrop: Optionally disable `/Applications` symlinkHarry Mallon2016-05-253-5/+21
| |/ /
* | | Merge topic 'FindCUDA-cublas_device'Brad King2016-05-262-2/+8
|\ \ \ | | | | | | | | | | | | | | | | 81e73b72 FindCUDA: Add support for finding the cublas_device library
| * | | FindCUDA: Add support for finding the cublas_device libraryJames Sharpe2016-05-252-2/+8
| |/ /
* | | Merge topic 'style-cmSystemTools'Brad King2016-05-261-1/+1
|\ \ \ | | | | | | | | | | | | | | | | 8e801eb5 cmSystemTools: Fix indentation typo
| * | | cmSystemTools: Fix indentation typoBrad King2016-05-251-1/+1
| | | |
* | | | Merge topic 'FindMatlab-2016a'Brad King2016-05-261-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 715e4cf5 FindMatlab: Add support for Matlab 2016a (9.0)
| * | | | FindMatlab: Add support for Matlab 2016a (9.0)Francesco Romano2016-05-251-0/+1
| | | | |
* | | | | Merge topic 'GetPrerequisites-more-paths'Brad King2016-05-261-0/+7
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | c9cebed5 GetPrerequisites: Look for VS tools using registry entries (#16108)
| * | | | GetPrerequisites: Look for VS tools using registry entries (#16108)Brad King2016-05-251-0/+7
| |/ / /
* | | | CMake Nightly Date StampKitware Robot2016-05-261-1/+1
| |_|/ |/| |
* | | Merge topic 'improve-character-find-and-replace'Brad King2016-05-2536-81/+78
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5784747d Improve string find: prefer character overloads. 5cec953e Use std::replace for replacing chars in strings. 2a1a2033 cmExtraEclipseCDT4Generator: use std::replace. 34bc6e1f cmCTestScriptHandler: don't call find repeatedly.
| * | | Improve string find: prefer character overloads.Daniel Pfeifer2016-05-2419-37/+37
| | | | | | | | | | | | | | | | | | | | Apply fix-its from clang-tidy's performance-faster-string-find checker. Ignore findings in kwsys.
| * | | Use std::replace for replacing chars in strings.Daniel Pfeifer2016-05-2417-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Find uses of `cmSystemTools::ReplaceString` where both `replace` and `with` are string literals with a size of one. Automate with: git grep -l ReplaceString | xargs sed -i "s|cmSystemTools::ReplaceString(\([^,]*\), \"\(.\)\", \"\(.\)\");|std::replace(\1.begin(), \1.end(), '\2', '\3');|g" git grep -l ReplaceString | xargs sed -i "s|cmSystemTools::ReplaceString(\([^,]*\), \"\(.\)\", \"\\\\\\\\\");|std::replace(\1.begin(), \1.end(), '\2', '\\\\\\\\');|g" git grep -l ReplaceString | xargs sed -i "s|cmSystemTools::ReplaceString(\([^,]*\), \"\\\\\\\\\", \"\(.\)\");|std::replace(\1.begin(), \1.end(), '\\\\\\\\', '\2');|g"
| * | | cmExtraEclipseCDT4Generator: use std::replace.Daniel Pfeifer2016-05-241-5/+1
| | | |
| * | | cmCTestScriptHandler: don't call find repeatedly.Daniel Pfeifer2016-05-241-3/+4
| |/ / | | | | | | | | | Also, prefer the character overload.
* | | Merge topic 'FindCUDA-flags-genex'Brad King2016-05-251-2/+7
|\ \ \ | | | | | | | | | | | | | | | | 6b190b5c FindCUDA: Add support for generator expressions in CUDA_NVCC_FLAGS
| * | | FindCUDA: Add support for generator expressions in CUDA_NVCC_FLAGSChuck Atkins2016-05-251-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Follow the configure_file by a file(GENERATE) so the resulting cmake scripts used by FindCUDA for wrapping nvcc calls can now support generator expressions in the CUDA_NVCC_FLAGS variable.
* | | | Merge topic 'standard-include-directories'Brad King2016-05-2512-2/+74
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c1340827 Add a variable to specify language-wide system include directories 44199097 cmMakefile: Optimize AddSystemIncludeDirectories for empty set a896043b GHS: Compute include directories consistently with other generators
| * | | | Add a variable to specify language-wide system include directoriesBrad King2016-05-2510-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a `CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES` variable to specify system include directories for for `<LANG>` compiler command lines. This plays a role for include directories as the existing `CMAKE_<LANG>_STANDARD_LIBRARIES` variable does for link libraries.
| * | | | cmMakefile: Optimize AddSystemIncludeDirectories for empty setBrad King2016-05-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Do not bother looping over all targets if we have no system include directories to add anyway.
| * | | | GHS: Compute include directories consistently with other generatorsBrad King2016-05-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | All generators use cmLocalGenerator::GetIncludeDirectories to construct the final list of include directories for a target.
* | | | | Merge topic 'doc-standard-libs'Brad King2016-05-254-8/+17
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | 7807b3a9 Help: Document CMAKE_<LANG>_STANDARD_LIBRARIES variable
| * | | | Help: Document CMAKE_<LANG>_STANDARD_LIBRARIES variableBrad King2016-05-244-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Also drop documentation of non-existent CMAKE_STANDARD_LIBRARIES variable.
* | | | | Merge topic 'output-converter-enums'Brad King2016-05-2525-302/+339
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 25d1ef64 Use enums defined in cmOutputConverter using their fully qualified name.
| * | | | | Use enums defined in cmOutputConverter using their fully qualified name.Daniel Pfeifer2016-05-2525-302/+339
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly automated: values=("RelativeRoot" "NONE" "FULL" "HOME" "START" "HOME_OUTPUT" "START_OUTPUT" "OutputFormat" "UNCHANGED" "MAKERULE" "SHELL" "WATCOMQUOTE" "RESPONSE" "FortranFormat" "FortranFormatNone" "FortranFormatFixed" "FortranFormatFree") for i in "${values[@]}"; do git grep -l cmLocalGenerator::$i | xargs sed -i "s|cmLocalGenerator::$i|cmOutputConverter::$i|g"; done
* | | | | CMake Nightly Date StampKitware Robot2016-05-251-1/+1
| |_|/ / |/| | |
* | | | Merge topic 'cpack-deb-different-package-names'Brad King2016-05-2422-30/+120
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | adbd3985 CPack/Deb possibility to change package name
| * | | | CPack/Deb possibility to change package nameDomen Vrankar2016-05-2322-30/+120
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch preserves backward compatibility of deb package names with previous CMake versions but similarly to CPack/RPM allows to change package name format and supports DEB-DEFAULT setting that produces proper Debian package names.
* | | | Merge topic 'cpack-deb-component-depends'Brad King2016-05-244-14/+27
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 4f3b9706 CPack/Deb prevent accidental component dependencies
| * | | | CPack/Deb prevent accidental component dependenciesDomen Vrankar2016-05-234-14/+27
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent accidental inter component dependency setting since this is a breaking feature in situations where another CPack module is already using the feature. It should be enabled if desired since it can cause issues when upgrading only one of the components for e.g. configuration instead of all the components at once.
* | | | Merge topic 'ExternalProject-fix-stash-all'Brad King2016-05-241-0/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 2bc981e6 ExternalProject: Fix git stash not using "--all" option