Commit Graph
40147 Commits
Author SHA1 Message Date
Kitware Robot eee2e7fd7e CMake Nightly Date Stamp 2026-09-02 00:06:15 -04:00
Kitware Robot 2f319547d1 CMake Nightly Date Stamp 2026-09-01 00:06:26 -04:00
Brad King 3c3ea1421a Merge topic 'jsonstate-fuzz'
8048ba5678 cmJSONParserFuzzer: Add array test case
286d490845 cmJSONParserFuzzer: Port to use cmJSONState
59733a83be cmJSONState: Catch exceptions during parsing

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12447
2026-08-31 11:51:44 -04:00
Brad King d4d7c4116b Merge topic 'sarif-exe-info'
afcf9ac341 SARIF: Report information about processes invoked in the SARIF log

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12439
2026-08-31 11:50:18 -04:00
Brad King d4c466aa3b Merge topic 'ctest-preset-unreachable'
2cf0f3713f cmCTest: Sprinkle CM_{FALLTHROUGH,UNREACHABLE} a few more places

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !12450
2026-08-31 11:27:20 -04:00
Brad King afd855e80b Merge topic 'runtime-deps-case-sensitivity'
728e6ce203 file(GET_RUNTIME_DEPENDENCIES): Fix DLL case insensitivity for cross-compiling
4ce278389f cmBinUtilsWindowsPELinker: Resolve cased and lower names together
6ed37c9ed0 cmBinUtilsWindowsPELinker: Track cased and lower names more clearly
f7ce592c98 cmBinUtilsWindowsPELinker: Switch case conversion to value semantics
86846f57b8 cmBinUtilsWindowsPELinker: Factor out helper to store cased and lower names
343723dd56 cmBinUtilsWindowsPELinker: Reduce conditional block nesting

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12437
2026-08-31 11:03:39 -04:00
Kitware Robot 313ad95baa CMake Nightly Date Stamp 2026-08-31 00:05:44 -04:00
Kitware Robot 4db79cc9aa CMake Nightly Date Stamp 2026-08-30 00:07:33 -04:00
Tyler Yankee 59733a83be cmJSONState: Catch exceptions during parsing
When CMake is linked against a sufficiently new jsoncpp supporting
exceptions, and built with the configuration to enable it, we can more
gracefully recover from runtime errors when parsing bad inputs.
2026-08-29 18:49:33 -04:00
Kitware Robot 80c848cd10 CMake Nightly Date Stamp 2026-08-29 00:05:31 -04:00
Stepanov Igor 728e6ce203 file(GET_RUNTIME_DEPENDENCIES): Fix DLL case insensitivity for cross-compiling
When cross-compiling to Windows from a (Linux) host with a
case-sensitive filesystem, match DLL file names case-insensitively.

Fixes: #28049
2026-08-28 18:53:43 +03:00
Daniel Tierney afcf9ac341 SARIF: Report information about processes invoked in the SARIF log
Fixes: #27903
2026-08-28 11:27:44 -04:00
Tyler Yankee 2cf0f3713f cmCTest: Sprinkle CM_{FALLTHROUGH,UNREACHABLE} a few more places
Amend commit f460a199e3 (Source: Add and use CM_UNREACHABLE macro,
2026-08-23).
2026-08-28 10:30:30 -04:00
Brad King 129c921fd0 Merge topic 'iar-fix-icstat-handler'
a17cbbee93 IAR: Add post-processing step in C-STAT outputs
4a8aeff8e4 IAR: Update ichecks error message
57fea01732 IAR: Fix malformed C-STAT command line

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12441
2026-08-28 09:31:26 -04:00
Brad King c23b537168 Merge topic 'instrumentation-proc-metrics'
5f222e8f3a Instrumentation: Add Process Resource Usage Metrics
7204679f48 Merge branch 'upstream-KWSys' into instrumentation-proc-metrics
431a794a66 KWSys 2026-08-27 (8f4afc3e)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12381
2026-08-28 09:17:39 -04:00
Kitware Robot 68b467a889 CMake Nightly Date Stamp 2026-08-28 00:06:59 -04:00
Brad King 4ce278389f cmBinUtilsWindowsPELinker: Resolve cased and lower names together 2026-08-27 17:00:41 -04:00
Brad King 6ed37c9ed0 cmBinUtilsWindowsPELinker: Track cased and lower names more clearly 2026-08-27 16:58:03 -04:00
Brad King f7ce592c98 cmBinUtilsWindowsPELinker: Switch case conversion to value semantics 2026-08-27 16:51:57 -04:00
Brad King 86846f57b8 cmBinUtilsWindowsPELinker: Factor out helper to store cased and lower names 2026-08-27 16:49:34 -04:00
Stepanov Igor 343723dd56 cmBinUtilsWindowsPELinker: Reduce conditional block nesting 2026-08-27 16:18:58 -04:00
Brad King e115b2047e Merge topic 'cm_unreachable'
09ded3a354 Help/dev: Note cm::unreachable and CM_UNREACHABLE
f460a199e3 Source: Add and use CM_UNREACHABLE macro
be415ecb74 Source: Add std::unreachable from C++23

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !12429
2026-08-27 10:54:50 -04:00
Brad King 7d7a68ccd9 Merge topic 'presets_add_configurePresetName_macro'
02dd870535 presets: Add configurePresetName macro

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12391
2026-08-27 10:41:06 -04:00
Brad King ba0f16f6cb Merge topic 'ewilde/ninja-refactor-swift-builds'
23b33482f1 Swift: Refactor module / object builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12438
2026-08-27 10:36:55 -04:00
Martin Duffy 5f222e8f3a Instrumentation: Add Process Resource Usage Metrics
Issue: #26675, #27742
2026-08-27 10:24:25 -04:00
Brad King 7204679f48 Merge branch 'upstream-KWSys' into instrumentation-proc-metrics
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2026-08-27 (8f4afc3e)
2026-08-27 10:24:22 -04:00
Kitware Robot f3e773be3e CMake Nightly Date Stamp 2026-08-27 00:05:05 -04:00
Felipe Torrezan a17cbbee93 IAR: Add post-processing step in C-STAT outputs
Harmonize IAR C-STAT headers between the first-time analysis
and subsequent builds, which uses cached results.

It also removes spurious relative paths such as `"../` and
`..\` that might appear after a new line followed by a double quote.
Effectively this will display paths relative to CMAKE_SOURCE_DIR,
similarly to the IDE, which display paths relative to $PROJ_DIR$.

Update the IAR tests to match the new C-STAT outputs.
2026-08-26 23:10:43 +02:00
Felipe Torrezan 4a8aeff8e4 IAR: Update ichecks error message
Update the C-STAT Checks Manifest Handler to contain
explicit reference to C-STAT for facilitating diagnostics.
2026-08-26 22:35:23 +02:00
Felipe Torrezan 57fea01732 IAR: Fix malformed C-STAT command line
There was an issue with a malformed command line introduced in
commit c7d2a172 (IAR: Add support for C-STAT static analysis,
2025-04-08, v4.1.0-rc1~385^2), where the source file was
incorrectly passed as a parameter when executing `icstat` in
HandleIcstat(). `icstat` does not take the source file as a
direct parameter.
2026-08-26 22:18:45 +02:00
Tyler Yankee f460a199e3 Source: Add and use CM_UNREACHABLE macro
In debug builds, we assert and abort to give more useful crashes for
development (i.e., instead of triggering UB). Otherwise, we get the
optimization benefits of `unreachable()` (or the older
platform-specific fallbacks per `cm/utility`).
2026-08-26 13:24:34 -04:00
Brad King 6ec33a4d0a Merge topic 'icstat-co-compile-source-file'
1470d96c44 IAR: Pass source file to C-STAT co-compile analysis

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12422
2026-08-26 09:21:14 -04:00
Kitware Robot 825bcff387 CMake Nightly Date Stamp 2026-08-26 00:04:54 -04:00
Maximilian Sander 02dd870535 presets: Add configurePresetName macro
Fixes: #28028
2026-08-25 14:33:10 -04:00
Brad King a584d8ed75 Merge topic 'system-env-id'
fc3c71d11f cmake: Add cached environment id that triggers reconfigure when changed

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !12420
2026-08-25 11:47:48 -04:00
Brad King b12192a593 Merge topic 'preset-template-helpers'
fffec0f86e presets: Extract common JSON field binds to helper
a1e4b92270 presets: Extract preset registration to helper
0029686e86 presets: Extract configure dependency resolution to helper

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12428
2026-08-25 11:32:27 -04:00
Kitware Robot 65e2e7690e CMake Nightly Date Stamp 2026-08-25 00:05:10 -04:00
Aiden Woodruff fc3c71d11f cmake: Add cached environment id that triggers reconfigure when changed
The opaque `CMAKE_SYSTEM_ENVIRONMENT_ID` variable is cached during the
first invocation of `cmake` and is a user-defined hint about the state
of the environment. When the value changes, `cmake` either does nothing,
emits a warning (by default), or refreshes the cache as if by `--fresh`.
The action is controlled by the `CMAKE_SYSTEM_ENVIRONMENT_ACTION`
environment variable (which is not cached).

Implements: #28025
2026-08-24 15:06:35 -04:00
Brad King 244b563b43 Merge topic 'autogen-vs-reduce-target-count'
d963b87ab4 Autogen: Reduce the number of targets under Visual Studio
2b5ad7e395 Autogen: Register per-config timestamp file with its full path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !12409
2026-08-24 12:31:33 -04:00
Brad King e903d46b9a Merge topic 'install-TARGETS-default-MODULE'
8072e80f4b install(TARGETS): Add default destination for MODULE libraries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12403
2026-08-24 12:27:07 -04:00
Brad King 568b7bee83 Merge topic 'presets-list-defined'
2a9cde8b6e presets: Add defined listings with unavailable reasons

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12367
2026-08-24 12:22:13 -04:00
Brad King 3ed98a45a8 Merge topic 'makefiles-output-sync'
e135fd8e44 Makefiles: Group parallel build output via GNU Make --output-sync

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12399
2026-08-24 12:19:01 -04:00
Brad King 7cc55e2db4 Merge topic 'ctest-repeat-number-of-runs'
135c7aa1f1 ctest: Add test rerun index "(run XX/YY)" to output

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Taylor Braun-Jones <taylor@braun-jones.org>
Merge-request: !12392
2026-08-24 12:06:15 -04:00
Brad King 0b60b6ebbf Merge topic 'ccmake-backspace-field-edit-ctrl-h'
319eade1c2 ccmake: Accept Ctrl+H as Backspace in cache-entry field editor

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Eyal Rozenberg <eyalroz1@gmx.com>
Merge-request: !12421
2026-08-24 12:00:48 -04:00
Brad King 73bb96d986 Merge topic 'jsonstate-install'
4f25560fc6 cmInstallScriptHandler: Remove unused JSON reader

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12415
2026-08-24 11:46:05 -04:00
Brad King eb708db6f8 Merge topic 'sphinx-copybutton'
392a79b910 Help/dev: Document use of sphinx-copybutton
1c5e70c9d0 bootstrap: Add --sphinx-html-copybutton option
1b1225a766 ci: Enable Sphinx copybutton for cmake.org and Sphinx jobs
6e2301357d ci: Add sphinx-copybutton extension to Fedora base image
ad5a65dd34 Utilities/Sphinx: Add option to build with copybutton
59875d4a08 Tests/FindImageMagick: Tolerate pre-release versions
45a426a4e3 codespell: Fix some hyphenated spellings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12424
2026-08-24 11:34:23 -04:00
Brad King cb3d63a245 Merge topic 'jsonstate-pkginforeader'
b14b613cec CPS: Use cmJSONState to read package JSON files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12414
2026-08-24 11:11:18 -04:00
Brad King cb89e8d15f Merge topic 'jsonstate-ninja'
26f6dab469 Ninja: Use cmJSONState for -E cmake_ninja_* commands
3796649167 cmJSONState: Avoid UB on empty error message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12405
2026-08-24 11:06:43 -04:00
Kitware Robot b7b55e306b CMake Nightly Date Stamp 2026-08-24 00:10:44 -04:00
Tyler Yankee fffec0f86e presets: Extract common JSON field binds to helper 2026-08-23 07:25:05 -04:00