summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Fix misc. typosluz.paz2018-06-0420-26/+26
| | | | Found via `codespell` and `grep`
* CMake Nightly Date StampKitware Robot2018-06-041-1/+1
|
* CMake Nightly Date StampKitware Robot2018-06-031-1/+1
|
* CMake Nightly Date StampKitware Robot2018-06-021-1/+1
|
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-01210-2002/+2499
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* clang-format.bash: update to clang-format-6.0Brad King2018-06-012-2/+2
| | | | | | | | | | | | Update `.clang-format` with configuration to make the 6.0 format as close as possible to what 3.8 produced before. Then revise the style: * Indent preprocessor directives (a feature new since 3.8) * Add a newline and indentation before inheritance `:` and `,` Rename the Git attribute identifying the format to include the clang-format version number: `format.clang-format-6.0`. This will aid external infrastructure in knowing what version of the tool to run.
* Merge topic 'autogen_autorcc_multi_config'Brad King2018-06-016-11/+76
|\ | | | | | | | | | | | | | | | | 5852acffa4 Autogen: Add AUTORCC configuration change test 41685c8ba0 Autogen: Let AUTORCC generate output for all configurations 2930a198f6 Autogen: Add lock file to AUTORCC commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2117
| * Autogen: Let AUTORCC generate output for all configurationsSebastian Holtermann2018-05-301-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | For multi configuration generators let AUTORCC generate the rcc output for all configurations. This is a workaround for the incomplete `$<CONFIG>` support in the DEPENDS and OUTPUT clauses of a custom_command/custom_target. Since we can't depend on the per-config rcc output file we somehow must ensure the successful rcc build for one configuration doesn't shadow the need to rcc rebuild for a second configuration. Closes #18006
| * Autogen: Add lock file to AUTORCC commandsSebastian Holtermann2018-05-306-9/+62
| | | | | | | | | | By using a per .qrc lock file in AUTORCC, the same `cmake -E cmake_autorcc ...` command can be called concurrently.
* | CMake Nightly Date StampKitware Robot2018-06-011-1/+1
| |
* | Merge topic 'cpack-wix-sources'Brad King2018-05-311-2/+2
|\ \ | | | | | | | | | | | | | | | | | | ca49f1a8e4 CPack: Fix cross-compilation of WiX generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2116
| * | CPack: Fix cross-compilation of WiX generatorBrad King2018-05-301-2/+2
| | | | | | | | | | | | | | | | | | | | | Fix the case of the path to source files so it works on case-sensitive filesystems. Fixes: #18042
* | | Merge topic 'revert-windows_symlinks'Brad King2018-05-313-8/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 83630d4918 cmSystemTools: Revert GetRealPath implementation on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2114
| * | | cmSystemTools: Revert GetRealPath implementation on WindowsBrad King2018-05-293-8/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of `uv_fs_realpath` introduced by commit v3.11.0-rc1~445^2~1 (cmSystemTools: Implement GetRealPath on Windows, 2017-10-02) causes `subst` drives to be expanded on Windows, breaking existing use cases. Revert its use until an alternative implementation can be chosen. Preserve the behavior introduced by commit v3.11.0-rc1~445^2 (cmTimestamp: For symlinks switch to timestamp of resolved path, 2017-10-02) by retaining use of `uv_fs_realpath` in a function of a different name. Fixes: #18033 Issue: #17206
| * | CMake 3.11.2v3.11.2Brad King2018-05-171-1/+1
| | |
| * | Merge branch 'custom-command-expand-empty' into release-3.11Brad King2018-05-141-0/+8
| |\ \ | | | | | | | | | | | | Merge-request: !2074
| * \ \ Merge branch 'autogen_register_info_files' into release-3.11Brad King2018-05-141-0/+3
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !2071
| * \ \ \ Merge branch 'restore-imported-lib-alias-diagnostic' into release-3.11Brad King2018-05-101-0/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !2058
| * \ \ \ \ Merge branch 'cxx-checks-tolerate-more-warnings' into release-3.11Brad King2018-04-301-0/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !2019
| * \ \ \ \ \ Merge branch 'backport-ninja-issue-17942' into release-3.11Brad King2018-04-262-1/+9
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !2010
* | | | | | | | CMake Nightly Date StampKitware Robot2018-05-311-1/+1
| | | | | | | |
* | | | | | | | Merge topic 'vs-toolset-version'Brad King2018-05-305-0/+118
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f13168419 VS: Add option to select the version of the toolset used by VS 2017 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Francisco Facioni <fran6co@gmail.com> Merge-request: !2093
| * | | | | | | | VS: Add option to select the version of the toolset used by VS 2017Basil Fierz2018-05-295-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new `version=` parameter in the toolset setting to select the version. Add variable `CMAKE_VS_PLATFORM_TOOLSET_VERSION` to hold the version, if one is set (blank indicates default). Fixes: #17549
* | | | | | | | | Merge topic 'cmRemoveDuplicates'Brad King2018-05-302-41/+38
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6d7c074055 cmAlgorithms: Speed up cmRemoveDuplicates method 281f59536f IWYU: Define a macro to tell code it is preprocessing for iwyu Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2101
| * | | | | | | | cmAlgorithms: Speed up cmRemoveDuplicates methodLe Minh Phuc2018-05-252-41/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a hash table instead of a sorted vector to track entries. Co-authored-by: Chu Qinghao <me@qinghao1.com>
* | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-301-1/+1
| | | | | | | | |
* | | | | | | | | Merge topic 'parallel_build_option'Brad King2018-05-2929-100/+358
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1ab3881ec9 cmake: Add options for parallel builds to --build mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Henry Schreiner <henryschreineriii@gmail.com> Merge-request: !1962
| * | | | | | | | cmake: Add options for parallel builds to --build modeFlorian Maushart2018-05-2529-100/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While we already support `cmake --build . -- -j`, the options after `--` are specific to the native build tool. Add new options `--parallel [<N>]` and `-j [<N>]` to abstract this and map to the proper option for the native build tool.
* | | | | | | | | Merge topic 'vs-raii-implement'Brad King2018-05-291-130/+42
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e7e25c6cb6 cmVisualStudio10TargetGenerator: Remove empty Elem::EndElement() 726c090297 cmVisualStudio10TargetGenerator: close XML tag in Elem destructor Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2109
| * | | | | | | | | cmVisualStudio10TargetGenerator: Remove empty Elem::EndElement()Vitaly Stakhovsky2018-05-251-125/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The method no longer does anything. Remove it and remove calls to it.
| * | | | | | | | | cmVisualStudio10TargetGenerator: close XML tag in Elem destructorVitaly Stakhovsky2018-05-251-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RAII actually implemented; EndElement() still kept to avoid major reformatting
* | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-291-1/+1
| | | | | | | | | |
* | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-281-1/+1
| | | | | | | | | |
* | | | | | | | | | Merge topic 'cmake-D-option-help'Craig Scott2018-05-271-1/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 42738e5075 Help: Update description of the -D option to CMake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2105
| * | | | | | | | | | Help: Update description of the -D option to CMakeRaul Laasner2018-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #18021
* | | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-271-1/+1
| | | | | | | | | | |
* | | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-261-1/+1
| |/ / / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Merge topic 'vs-scope'Brad King2018-05-251-19/+29
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45c4a75d27 cmVisualStudio10TargetGenerator: make sure each Elem has right scope Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2096
| * | | | | | | | | | cmVisualStudio10TargetGenerator: make sure each Elem has right scopeVitaly Stakhovsky2018-05-221-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare for future RAII
* | | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-251-1/+1
| |/ / / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Merge topic 'revise-case-insensitive-command'Brad King2018-05-2410-41/+64
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b1a05d6c76 Revise implementation of case-insensitive command names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2024
| * | | | | | | | | | Revise implementation of case-insensitive command namesFlorian Jacomme2018-05-2210-41/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Store both the as-written and lower-case command names and use the latter to avoid case-insensitive string comparisons. With this I obtain 2-6% speed increase (on Windows) for the configure step with no significant changes in memory usage. A case-insensitive comparison is a lot slower than just calling `==` because the operator will use things like memcmp, so prefer the latter. The `cmSystemTools::LowerCase` function allocates a new string each time it is called, so before this change we were allocating in: * cmMakefile::Configure two times for each function (to look for `cmake_minimum_required` and `project`) * cmMakefile::ExecuteCommand twice by function by calling cmState::GetCommand and copying the name Now we are only allocating once by function instead of four.
* | | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-241-1/+1
| | | | | | | | | | |
* | | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-231-1/+1
| |_|_|/ / / / / / / |/| | | | | | | | |
* | | | | | | | | | CMake Nightly Date StampKitware Robot2018-05-221-1/+1
| |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Merge topic 'pr.copy_data_check'Brad King2018-05-211-8/+18
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a203fcc63d cmake: Teach '-E tar' to report errors copying data Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2075
| * | | | | | | | | cmake: Teach '-E tar' to report errors copying dataRuslan Baratov2018-05-181-8/+18
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `copy_data` function checks for errors but the caller ignored them. Simplify its return type and add a check to the caller.
* | | | | | | | | Merge topic 'eclipse-custom-content'Brad King2018-05-211-0/+7
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd0da95f63 Eclipse: Add property to include additional contents in .cproject file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2088
| * | | | | | | | | Eclipse: Add property to include additional contents in .cproject fileMelanie Cappelaere2018-05-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to ECLIPSE_EXTRA_NATURES which can be used to add a third party nature to the .project, this property offers the possibility to inject third party contents into the .cproject. An example of where this is useful is MCUXpresso. This is an IDE based on Eclipse. Compiling through CMake generated Eclipse projects works fine by using a custom toolchain. However, in order to be able to debug using such a project, an extra storageModule specific to the target board is needed in the cproject.
* | | | | | | | | | Merge topic 'PDBDirectoryGenExpression'Brad King2018-05-211-2/+13
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 79ca546ed2 Add generator expression support to PDB_OUTPUT_DIRECTORY target property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2083