Commit Graph

39988 Commits

Author SHA1 Message Date
Brad King
437cf232c5 Merge topic 'fix-cps-default-components-reexport'
4c6b437265 Export: Expand CPS default targets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12333
2026-08-01 07:48:06 -04:00
Brad King
3091990556 Merge topic 'jsonstate-instrumentation'
1a9d3faff1 cmInstrumentation: Use cmJSONState to read snippet files
8dd00674bd cmInstrumentationCommand: Use cmJSONState to read content args
76e4137229 cmJSONState: Allow strictMode toggle
397fcd4663 cmJSONState: Allow input stream as input

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12320
2026-08-01 07:31:02 -04:00
Brad King
689ded6cc8 Merge topic 'update-kwsys'
f442561af3 Merge branch 'upstream-KWSys' into update-kwsys
e02ccf40f3 KWSys 2026-08-01 (786ec914)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12353
2026-08-01 07:16:38 -04:00
Brad King
f442561af3 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2026-08-01 (786ec914)
2026-08-01 07:11:37 -04:00
Kitware Robot
ab1627af4c CMake Nightly Date Stamp 2026-08-01 00:05:28 -04:00
Brad King
90cfce949a Merge topic 'discover-tests-crash'
1b2f3287f7 GoogleTest: Restore toleration of odd test PROPERTIES count
6147180017 discover_tests: Require properties to be key-value pairs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12350
2026-07-31 08:52:06 -04:00
Kitware Robot
3d0f2256a6 CMake Nightly Date Stamp 2026-07-31 00:05:23 -04:00
Matthew Woehlke
4c6b437265 Export: Expand CPS default targets
CPS provides "default targets" as a user convenience which can be linked
by specifying only the package name. CMake implements this via a utility
`INTERFACE` target. However, because it is not namespaced, this is not a
valid requirement, which prevents exporting anything linking to this
target to CPS.

Work around this by introducing a new (internal) target property which
replaces a target with its link interface targets at export time.
2026-07-30 15:01:47 -04:00
Tyler Yankee
1a9d3faff1 cmInstrumentation: Use cmJSONState to read snippet files
This approach will be more portable.
2026-07-30 13:53:04 -04:00
Tyler Yankee
8dd00674bd cmInstrumentationCommand: Use cmJSONState to read content args
This approach will be more portable.
2026-07-30 13:52:58 -04:00
Daniel Pfeifer
6147180017 discover_tests: Require properties to be key-value pairs
Issue: #28004
2026-07-30 12:21:23 -04:00
Brad King
6fa0c6114b Merge topic 'fix-missing-rst-roles'
a9e89fec6d cmRST: Add missing roles

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12348
2026-07-30 11:52:27 -04:00
Brad King
0f556ca580 Merge topic 'improve-rst-output'
afd937eb3e cmRST: Split parsing into two phases

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12339
2026-07-30 11:51:07 -04:00
Brad King
f1b9d54f43 Merge topic 'improve_workflow_configurePreset_error_msg'
18b8743037 presets: Detail conflicting diagnostic settings
d4bb9f2c53 presets: Diagnose invalid test filter index types
b1d80531dc presets: Diagnose non-string workflow step types
e928b9327a presets: Identify unreachable inherited presets
0779279585 presets: Identify unreachable configure references
9f28db13e6 presets: Identify unknown configure preset references
7de3c48731 Add '\n' to error output, missed in f134468a98
7ccff59b07 presets: Name malformed preset collections
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12329
2026-07-30 11:49:02 -04:00
Brad King
26117499b3 Merge topic 'fastbuild-many-custom-target-dependencies'
696b9fd218 fastbuild: support long list of custom target dependencies
566d284457 fastbuild: remove useless std::string building

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12345
2026-07-30 11:47:16 -04:00
Brad King
7ac03222ea Merge topic 'watcom-plus-in-file-name'
0bccfbcf0a watcom: support '+' symbol in file names

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12338
2026-07-30 11:45:13 -04:00
Brad King
54c718ad23 Merge topic 'move-get-actual-case-path'
93c3793829 cmSystemTools: adopt the `GetActualCaseForPath` method from KWSys

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12343
2026-07-30 11:43:10 -04:00
Tyler Yankee
76e4137229 cmJSONState: Allow strictMode toggle
During the refactoring to cmJSONState, some callsites will need to
use "relaxed" parsing to maintain compatibility.
2026-07-30 10:29:20 -04:00
Tyler Yankee
397fcd4663 cmJSONState: Allow input stream as input 2026-07-30 10:29:19 -04:00
Kitware Robot
ec0588416e CMake Nightly Date Stamp 2026-07-30 00:05:36 -04:00
Matthew Woehlke
afd937eb3e cmRST: Split parsing into two phases
Refactor cmRST to split parsing into two phases; one which processes
directives and collects lines to be output, and a second which performs
the actual output. In particular, this fixes substitutions not being
replaced when the definition appears after usage.

To facilitate this, refactor how replacement definitions are collected
so that content included via `toctree` has a separate replacement
context.

Also, record the length of the previously output line, so that when
headings are detected, we can reconstruct the markup to match the
(potentially changed by replacements) final length of the header text.
2026-07-29 15:04:59 -04:00
Matthew Woehlke
a9e89fec6d cmRST: Add missing roles
Our Sphinx extensions recognize several roles that missed being added to
our internal C++ parser (`cmRST`). Update the latter with the missing
roles, bringing the two back in sync. This addresses several roles that
`cmRST` was previously leaving as inline markup that more appropriately
should be converted to literal text.
2026-07-29 15:00:40 -04:00
Ben Boeckel
93c3793829 cmSystemTools: adopt the GetActualCaseForPath method from KWSys
No other project uses it and it simplifies KWSys.
2026-07-29 14:15:27 -04:00
Maximilian Sander
18b8743037 presets: Detail conflicting diagnostic settings 2026-07-29 18:20:32 +02:00
Maximilian Sander
d4bb9f2c53 presets: Diagnose invalid test filter index types 2026-07-29 18:20:32 +02:00
Maximilian Sander
b1d80531dc presets: Diagnose non-string workflow step types 2026-07-29 18:20:23 +02:00
AJIOB
696b9fd218 fastbuild: support long list of custom target dependencies
Fixes: #27984
2026-07-29 18:44:29 +03:00
AJIOB
0bccfbcf0a watcom: support '+' symbol in file names
Fixes: #27986
2026-07-29 18:35:25 +03:00
AJIOB
566d284457 fastbuild: remove useless std::string building 2026-07-29 18:11:56 +03:00
Brad King
8a947d73d5 Merge topic 'warn-non-target-directives'
00959286b9 Diagnostics: Warn about non-target directives

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12172
2026-07-29 10:34:27 -04:00
Kitware Robot
bd2d6c8f39 CMake Nightly Date Stamp 2026-07-29 00:05:51 -04:00
Matthew Woehlke
00959286b9 Diagnostics: Warn about non-target directives
Introduce `CMD_STRICT` to act as a parent for warnings about allowed but
disrecommended usage. Introduce a warning that discourages use of
non-target directives (which modify the build environment for the entire
[sub]tree). Add notes to the official documentation recommending use of
target-specific alternatives. This has been accepted wisdom for quite
some time, but only some of the affected commands made any mention of
this in the documentation.
2026-07-28 11:38:20 -04:00
Brad King
d1cffecacd CMake 4.4.1 2026-07-28 10:26:50 -04:00
Brad King
2734c4b9ca Merge topic 'update-kwsys'
503f0ba3a0 Merge branch 'upstream-KWSys' into update-kwsys
17d84a64e9 KWSys 2026-07-28 (b5fb218b)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12330
2026-07-28 09:54:58 -04:00
Brad King
503f0ba3a0 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2026-07-28 (b5fb218b)
2026-07-28 09:51:43 -04:00
Brad King
4b88240b64 Merge topic 'ctest_test-label-and'
257865e1d4 CTest: Make ctest_test() label filters multi-value (AND)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12321
2026-07-28 09:50:30 -04:00
Kitware Robot
f09ac397fd CMake Nightly Date Stamp 2026-07-28 00:05:35 -04:00
Maximilian Sander
e928b9327a presets: Identify unreachable inherited presets 2026-07-28 00:57:52 +02:00
Maximilian Sander
0779279585 presets: Identify unreachable configure references 2026-07-28 00:57:52 +02:00
Maximilian Sander
9f28db13e6 presets: Identify unknown configure preset references 2026-07-28 00:57:44 +02:00
Maximilian Sander
7de3c48731 Add '\n' to error output, missed in f134468a98 2026-07-28 00:51:55 +02:00
Maximilian Sander
7ccff59b07 presets: Name malformed preset collections 2026-07-28 00:41:41 +02:00
Maximilian Sander
394ce2ebe6 presets: Diagnose workflow configure preset mismatches 2026-07-28 00:41:41 +02:00
Brad King
07368fab0c Merge topic 'test-include-files-genex'
63316be823 TEST_INCLUDE_FILES: Evaluate generator expressions in include paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12313
2026-07-27 10:12:30 -04:00
Brad King
fb9febd270 Merge topic 'instrumentation-long-lists'
dba12b5e82 instrumentation: support long output list of files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12278
2026-07-27 10:10:54 -04:00
Brad King
dffb8a0839 Merge topic 'jsonstate-fileapi'
d3ccd49eeb cmFileAPI: Use cmJSONState to read client queries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12317
2026-07-27 10:08:50 -04:00
Brad King
4727ac4908 Merge topic 'fix-mod-manifest-nested-dirs'
539b097bd8 CPS/c++modules: Use file system root as base directory for module manifests

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12326
2026-07-27 10:03:44 -04:00
Brad King
23f412a704 Merge topic 'fix-mod-manifest-nested-dirs' into release-4.4
539b097bd8 CPS/c++modules: Use file system root as base directory for module manifests

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12326
2026-07-27 10:03:41 -04:00
Brad King
0d21b63fea Merge topic 'fix-cps-private-link-deps'
c7ffbc3a26 CPS: Add package requirements for per-config link dependencies

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12324
2026-07-27 10:01:14 -04:00
Brad King
44b74c8aae Merge topic 'fix-cps-private-link-deps' into release-4.4
c7ffbc3a26 CPS: Add package requirements for per-config link dependencies

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12324
2026-07-27 10:01:12 -04:00