summaryrefslogtreecommitdiff
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy: address `readability-container-data-pointer` lintsBen Boeckel2022-05-2412-50/+50
|
* clang-tidy: address `modernize-use-default-member-init` lintsBen Boeckel2022-05-2454-212/+109
|
* cmGlobalGenerator: check for `nullptr` in `GetLanguageFromExtension`Ben Boeckel2022-05-211-1/+4
| | | | Found by `clang-analyzer`.
* cmCTestSubmitHandler: avoid double fetching envvarsBen Boeckel2022-05-211-4/+4
| | | | | Technically, they can change between these two calls, so use the verified pointer to assign to strings. Discovered by `clang-analyzer`.
* cmMakefileLibraryTargetGenerator: improve output buildingBen Boeckel2022-05-191-1/+3
| | | | | GCC warns about buffer juggling here. To avoid the warning, improve the code to avoid resizing on the following two pushes.
* style: use `cmStrCat` in some more locationsBen Boeckel2022-05-193-4/+3
|
* Merge topic 'ignore-werror-command-arg'Brad King2022-05-194-5/+21
|\ | | | | | | | | | | | | 65f7053d6c COMPILE_WARNING_AS_ERROR: Add command-line option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7268
| * COMPILE_WARNING_AS_ERROR: Add command-line optionMartin Duffy2022-05-184-5/+21
| | | | | | | | | | | | | | Add command-line option `--compile-no-warning-as-error` to ignore value of `COMPILE_WARNING_AS_ERROR`. Issue: #19085
* | Merge topic 'verify-interface-header-sets'Brad King2022-05-192-6/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | 259c265112 VERIFY_HEADER_SETS: Rename to VERIFY_INTERFACE_HEADER_SETS Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7279
| * | VERIFY_HEADER_SETS: Rename to VERIFY_INTERFACE_HEADER_SETSKyle Edwards2022-05-182-6/+6
| | | | | | | | | | | | Issue: #23448
* | | CMake Nightly Date StampKitware Robot2022-05-191-1/+1
|/ /
* | Merge topic 'ccmake-fix-infinite-loop-search'Brad King2022-05-182-7/+8
|\ \ | | | | | | | | | | | | | | | | | | 432a8ab739 ccmake: Fix infinite loop during invalid search Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7269
| * | ccmake: Fix infinite loop during invalid searchMartin Duffy2022-05-182-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issue introduced in commit 2defe9ff95 (ccmake: Fix crash when deleting all cache entries, 2022-05-12). Leaving the Empty Cache widget always on the Entry list had unforeseen consequences, including that it caused an infinite loop when searching for a string that did not match any variables.
| * | Merge topic 'cuda-arch-off-vs' into release-3.23Brad King2022-05-161-4/+5
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9fe41ecf36 VS: Fix CUDA CodeGeneration field for CMAKE_CUDA_ARCHITECTURES=OFF Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !7261
* | | | CMake Nightly Date StampKitware Robot2022-05-181-1/+1
| | | |
* | | | Merge topic 'try_compile-project-platform-vars'Brad King2022-05-172-2/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a6562ff579 try_compile: Add option to skip passing platform variables 4843a37676 try_compile: Propagate platform variables in project-mode too Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7265
| * | | | try_compile: Add option to skip passing platform variablesBrad King2022-05-161-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `CMAKE_TRY_COMPILE_NO_PLATFORM_VARIABLES` variable to tell `try_compile` not to pass platform variables to the test project. Issue: #23219
| * | | | try_compile: Propagate platform variables in project-mode tooBrad King2022-05-162-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add policy CMP0137 to propagate both our builtin variables and those listed by `CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` to `try_compile` whole-project builds. Inspired-by: Alexander Neumann <Alexander.Neumann@hamburg.de> Fixes: #23219
* | | | | Merge topic 'install-all-components-fix'Brad King2022-05-172-6/+16
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b0c8e31b54 install: Don't ignore EXCLUDE_FROM_ALL when used with ALL_COMPONENTS Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7263
| * | | | | install: Don't ignore EXCLUDE_FROM_ALL when used with ALL_COMPONENTSNils Gladitz2022-05-162-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #23494
* | | | | | CMake Nightly Date StampKitware Robot2022-05-171-1/+1
| | | | | |
* | | | | | Merge topic 'CMAKE_PROJECT_TOP_LEVEL_INCLUDES'Brad King2022-05-161-0/+27
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a6c34b0353 project(): Add new CMAKE_PROJECT_TOP_LEVEL_INCLUDES file injection point 8aa29a1793 CMakeDetermineSystem: Remove unreachable code Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7250
| * | | | | | project(): Add new CMAKE_PROJECT_TOP_LEVEL_INCLUDES file injection pointCraig Scott2022-05-131-0/+27
| | | | | | | | | | | | | | | | | | | | | Fixes: #22685
* | | | | | | Merge topic 'cuda-arch-off-vs'Brad King2022-05-161-4/+5
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9fe41ecf36 VS: Fix CUDA CodeGeneration field for CMAKE_CUDA_ARCHITECTURES=OFF Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !7261
| * | | | | | VS: Fix CUDA CodeGeneration field for CMAKE_CUDA_ARCHITECTURES=OFFBrad King2022-05-131-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we add no CUDA architecture flags, write an empty `CodeGeneration` field to tell the CUDA Toolkit's VS integration not to add its default flags. We already use this approach for `CMAKE_CUDA_ARCHITECTURES=all` so that the `-arch=all` flag can be added via `AdditionalOptions`. Fixes: #23490
* | | | | | | CMake Nightly Date StampKitware Robot2022-05-161-1/+1
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2022-05-151-1/+1
| |_|/ / / / |/| | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-05-141-1/+1
| | | | | |
* | | | | | Merge topic 'presets-pathListSep'Brad King2022-05-133-0/+19
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ba969ce5fe cmake-presets: add ${pathListSep} macro Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7234
| * | | | | | cmake-presets: add ${pathListSep} macroErin Melucci2022-05-123-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #23282
* | | | | | | Merge topic 'ccmake-delete-cache'Brad King2022-05-132-21/+17
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2defe9ff95 ccmake: Fix crash when deleting all cache entries e1c85e29f4 ccmake: Move Initialization of Fields Inline Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7257
| * | | | | | ccmake: Fix crash when deleting all cache entriesMartin Duffy2022-05-122-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents crash when deleting all cache entries. Additionally, if advanced entries are hidden, no longer show the first advanced entry when deleting all visible entries. Fixes: #23499
| * | | | | | ccmake: Move Initialization of Fields InlineMartin Duffy2022-05-122-12/+6
| | |/ / / / | |/| | | | | | | | | | | | | | | | Move initialization of simple fields in cmCursesMainForm inline.
| * | | | | Merge topic 'avoid-remove-empty-path' into release-3.23Brad King2022-05-031-1/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71ded12a75 cmGeneratedFileStream: Do not remove empty path Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7223
* | | | | | | CMake Nightly Date StampKitware Robot2022-05-131-1/+1
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2022-05-121-1/+1
| |_|_|_|/ / |/| | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-05-111-1/+1
| | | | | |
* | | | | | Merge topic 'werror-property'Brad King2022-05-102-0/+10
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 76a08cd253 COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errors Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !7187
| * | | | | COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errorsMartin Duffy2022-05-062-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `COMPILE_WARNING_AS_ERROR` target property and supporting `CMAKE_COMPILE_WARNING_AS_ERROR` variable. `COMPILE_WARNING_AS_ERROR` is initialized by `CMAKE_COMPILE_WARNING_AS_ERROR`. It is a boolean variable. If it is true, it expands to a different flag depending on the compiler such that any warnings at compile will be treated as errors. Supports compiler ids that I could find a relevant flag for.
* | | | | | Merge topic 'watcom-runtime-library-v2'Brad King2022-05-104-1/+47
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a2b016bbd OpenWatcom: Support CMAKE_WATCOM_RUNTIME_LIBRARY with Linux and OS/2 builds 33da5824ac OpenWatcom: Allow specifying the runtime library Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7184
| * | | | | | OpenWatcom: Allow specifying the runtime libraryCameron Cawley2022-05-064-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `CMAKE_WATCOM_RUNTIME_LIBRARY` variable to control the runtime library selection. Add policy CMP0136 to switch to in place of the old hard-coded default flags. Fixes: #23178
* | | | | | | CMake Nightly Date StampKitware Robot2022-05-101-1/+1
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2022-05-091-1/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-05-081-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2022-05-071-1/+1
| | | | | |
* | | | | | Merge topic 'json-pass-state'Kyle Edwards2022-05-066-386/+353
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b7fc2df0b cmJSONHelpers: Allow passing state context 30336dab66 cmJSONHelpers: Restructure cmJSONHelpers Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7231
| * | | | | cmJSONHelpers: Allow passing state contextMartin Duffy2022-05-051-57/+70
| | | | | | | | | | | | | | | | | | | | | | | | Allow for passing of context to JSON Helper methods in cmJSONHelpers.
| * | | | | cmJSONHelpers: Restructure cmJSONHelpersMartin Duffy2022-05-056-384/+338
| | | | | | | | | | | | | | | | | | | | | | | | Restructure cmJSONHelpers to prevent SunPro errors when passing context.
* | | | | | Merge topic 'try_compile-platform-vars'Brad King2022-05-061-107/+103
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 40f380fcb0 cmCoreTryCompile: Replace vector push_back with emplace_back c6b0657f5b cmCoreTryCompile: Move platform variable forwarding to dedicated block Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7243
| * | | | | | cmCoreTryCompile: Replace vector push_back with emplace_backBrad King2022-05-051-12/+12
| | | | | | |