Commit Graph
9518 Commits
Author SHA1 Message Date
Brad King a45b3f0722 Merge branch 'release-4.3' 2026-05-21 14:58:11 -04:00
Brad King 06cc1d04d8 CMake 4.3.3 2026-05-21 14:32:22 -04:00
Brad King 4bc63347e2 Merge branch 'release-4.2' 2026-05-21 14:05:17 -04:00
Brad King 6de540b9d3 Merge branch 'release-4.2' into release-4.3 2026-05-21 14:04:57 -04:00
Brad King 046f192cf1 CMake 4.2.6 2026-05-21 13:31:34 -04:00
Brad King 0d2e9ce13c Merge topic 'instrumentation-data-version-doc'
1d0f587062 instrumentation: Clarify API and Data version distinction

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12091
2026-05-21 09:45:18 -04:00
Brad King 81397f4f12 Merge topic 'instrumentation-data-version-doc' into release-4.3
1d0f587062 instrumentation: Clarify API and Data version distinction

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12091
2026-05-21 09:45:16 -04:00
Brad King d7c0609e0d Merge topic 'tutorial-step-3-fix'
788364b927 Tutorial: Fix potentially misleading guidance on -D flags in script mode

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12089
2026-05-21 09:44:03 -04:00
Martin Duffy 1d0f587062 instrumentation: Clarify API and Data version distinction
The instrumentation docs were unclear about the difference between API
and Data version, with the hierarchy of the table of contents being
particularly misleading.

Rework `cmake-instrumentation` manual and `cmake_instrumentation` command
documentation to be more clear.
2026-05-20 15:20:09 -04:00
Brad King d2e20c74ed Merge topic 'ctest-help-args'
c0eddfb8c8 ctest: Add missing help strings for documented options
2f3de9e2f3 Help/ctest: Improve formatting and grammar
36e486555d Help, ctest: Add argument placeholders
e16767d962 presets: Fix command help for --presets-file

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12088
2026-05-20 15:01:30 -04:00
Brad King 7f8ffcd77c Merge topic 'cps-fix-default-dest'
9d94a2abe6 Merge branch 'backport-cps-fix-default-dest' into cps-fix-default-dest
ed6e9abf98 CPS, SBOM: Fix default output destination

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12082
2026-05-20 14:57:56 -04:00
Brad King cae35b9687 Merge topic 'doc-fix-minsizerel-typo'
de6c5a50ca Tutorial: Fix typo in Before You Begin

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12076
2026-05-20 14:46:51 -04:00
Vito Gamberini 788364b927 Tutorial: Fix potentially misleading guidance on -D flags in script mode 2026-05-20 14:07:56 -04:00
Brad King 9d94a2abe6 Merge branch 'backport-cps-fix-default-dest' into cps-fix-default-dest 2026-05-19 15:26:46 -04:00
Xia Lei de6c5a50ca Tutorial: Fix typo in Before You Begin
Fix a spelling error.  Change "MinRelSize" to "MinSizeRel".
2026-05-19 14:00:47 -04:00
Matthew Woehlke ed6e9abf98 CPS, SBOM: Fix default output destination
- Change default CPS install path on Windows from `cps` to `cps/<name>`,
per community recommendation that only paths containing the package name
should be considered as "officially" supported search locations (see
https://github.com/cps-org/cps/issues/79#issuecomment-2831102822).

- Change `export` to write to a subdirectory that allows the build
tree to be used as a search root.

- Change SBOM destinations to be consistent with the preceding.

Issue: #27785
2026-05-19 13:31:56 -04:00
Tyler Yankee 2f3de9e2f3 Help/ctest: Improve formatting and grammar 2026-05-19 11:49:29 -04:00
Tyler Yankee 36e486555d Help, ctest: Add argument placeholders
Conventionally, CMake help modes and manuals/documentation specify
placeholders for options which take one or many values after the option
name. Several existing `ctest` options do not follow this.

Fixes: #27827
2026-05-19 11:49:28 -04:00
Brad King 90cbdcda78 Help: Make CMAKE_MSVC_RUNTIME_LIBRARY empty-string value more visible
List it alongside the other values instead of in prose.

Closes: #27829
2026-05-19 10:32:32 -04:00
Brad King 485b155cb9 Merge topic 'swift-pdb'
404f6bac3c Swift: support PDB emission with Swift

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12064
2026-05-19 09:04:41 -04:00
Brad King 0241f52e5c Merge topic 'pellesc-doc'
090e754a34 PellesC: Document support for this compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12068
2026-05-19 08:59:39 -04:00
Brad King afad360df9 Merge topic 'cmake-more-diagnostics'
028d3183ad Diagnostics: Add POLICY, EXPERIMENTAL
92e0ca9046 Diagnostics: Show author message for all descendants

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12034
2026-05-16 09:53:27 -04:00
Saleem Abdulrasool 404f6bac3c Swift: support PDB emission with Swift
Swift supports CodeView/PDB for Windows (with active development ongoing
to make it the default). It is currently usable but does not have the
same fidelity as DWARF, but can be sufficient for many use cases. The
user is able to control this via flags. Wire up the necessary support to
allow `TARGET_PDB_FILE` to be used with Swift/Swift-only targets.
2026-05-16 09:05:46 -04:00
Daniele E. Domenichelli 9bd3346655 CMakePackageConfigHelpers: add more version compatibility modes
Add `SamePatchVersion`, `SameFullVersion`, and `SemanticVersion`
support.

Document `ExactVersion` as deprecated in favor of the clearer
`SamePatchVersion`/`SameFullVersion` names.

Closes: #18060
2026-05-15 13:51:11 -04:00
Brad King 433725108d Merge topic 'tutorial-foo-capitalization'
077c43747d Tutorial: Fix typo in prose about matching "Foo"

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12065
2026-05-15 12:13:46 -04:00
Brad KingandSerguei E. Leontiev 090e754a34 PellesC: Document support for this compiler
This was left out of commit b7a5f2732d (PellesC: Add minimal support for
this C compiler, 2026-04-03) because the implementation was not usable
in general.  It is now.

Closes: #21536
Co-authored-by: Serguei E. Leontiev <leo@sai.msu.ru>
2026-05-15 12:06:46 -04:00
Brad King 7c526eebcf Merge topic 'tutorial-xref'
17540b8f47 Tutorial: Fix Sphinx cross-reference to preset installDir field

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12067
2026-05-15 11:51:23 -04:00
Brad King 17540b8f47 Tutorial: Fix Sphinx cross-reference to preset installDir field
Fix a logical conflict between commit 653356bed0 (Tutorial: Describe
install prefix, 2026-05-14) and commit f26e9fcbae (Help: Generate
presets JSON schema, documentation, 2026-04-08).
2026-05-15 11:44:34 -04:00
Bo Rydberg 077c43747d Tutorial: Fix typo in prose about matching "Foo" 2026-05-15 11:24:29 -04:00
Brad King 08e5ffbeac Merge topic 'fileset-SKIP_UNITY_BUILD_INCLUSION'
5f7a7aa263 FILE_SET: add SKIP_UNITY_BUILD_INCLUSION property support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12040
2026-05-15 10:18:03 -04:00
Brad King 0ab34febed Merge topic 'tutorial-misc-fixes'
4b093ae12e Tutorial: Move multi-config install note to the first exercise
653356bed0 Tutorial: Describe install prefix
fdc4511f18 Tutorial: Fix some typos

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !12062
2026-05-15 10:07:27 -04:00
Matthew Woehlke 028d3183ad Diagnostics: Add POLICY, EXPERIMENTAL
Add new diagnostic categories CMD_POLICY and CMD_EXPERIMENTAL, both as
children of CMD_AUTHOR. Use the former when issuing policy warnings. Use
the latter when issuing experimental feature warnings.
2026-05-15 09:57:23 -04:00
Tyler Yankee 4b093ae12e Tutorial: Move multi-config install note to the first exercise
The context is needed when running all exercises in this step.

Revise both this note and its mirror for `ctest` in Step 7 to
cross-reference the relevant flags.
2026-05-14 18:22:14 -04:00
Tyler Yankee 653356bed0 Tutorial: Describe install prefix
Give a brief overview of what the install prefix is and the various
ways it can be set.
2026-05-14 18:11:41 -04:00
Tyler Yankee fdc4511f18 Tutorial: Fix some typos 2026-05-14 17:54:34 -04:00
Marc Chevrier 5f7a7aa263 FILE_SET: add SKIP_UNITY_BUILD_INCLUSION property support 2026-05-14 10:55:35 -04:00
Brad King 84a843cfb6 Merge topic 'file-api-many-file-sets'
9f4cf1cef7 fileAPI: Report full backtraces for sources in multiple file sets
3d249d2aa9 fileAPI: Support files added to multiple file sets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12009
2026-05-14 10:40:22 -04:00
Brad King 08bf1b6985 Merge topic 'ctest_commands_presets_file'
08dc82ceb3 ctest: add PRESETS_FILE option to CTest commands

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12042
2026-05-14 08:53:25 -04:00
Brad King 011fc8be63 Merge topic 'feature/list-functor-no-macro'
96c9a9c67d list: Reject macros as APPLY/PREDICATE/COMPARATOR arguments
08288eb14a list: Extract RequireFunction helper for command validation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11997
2026-05-14 08:45:19 -04:00
Brad King 7d5d05c2a7 Merge topic 'clarify-cmp0218'
db4eb6fb91 CMP0218: Clarify when policy applies

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12051
2026-05-13 13:35:34 -04:00
Brad King d7257109e7 Merge topic 'ctest-update-version-options'
585e0d5878 ctest_update: Add options VERSION_ONLY and VERSION_OVERRIDE

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12038
2026-05-13 13:28:21 -04:00
Tyler Yankee 9f4cf1cef7 fileAPI: Report full backtraces for sources in multiple file sets
Previously, if a single source file was added to multiple file sets via
multiple `target_sources` calls, only the first call originally adding
it to the target was stored in the backtrace graph and referenced by
index in the singular "backtrace" field.

Add a "backtraces" field expanding this to cover all command
invocations which associate the given source file with that target.
Preserve the original "backtrace" field for compatibility. Update
spellings in the test suite to check against both fields.

Issue: #27035
2026-05-12 16:45:13 -04:00
Tyler Yankee 3d249d2aa9 fileAPI: Support files added to multiple file sets
The `fileSetIndex` field of target sources replies is incomplete, as a
single source file can be added to arbitrarily many file sets. Add a
`fileSetIndexes` field to report all file sets to which a source
belongs, and preserve `fileSetIndex` for compatibility as the index of
the most recent addition.

Tweak the test suite to use the plural spelling only in expected JSON
snippets and verify that the singular `fileSetIndex` is always the last
element of the new list. (Note that remaining occurrences of the
singular spelling correspond to "installers" objects, which is entirely
different.)

Fixes: #27035
2026-05-12 16:45:12 -04:00
Zack Galbreath 08dc82ceb3 ctest: add PRESETS_FILE option to CTest commands
Allow CTest script authors to use presets from arbitrary files.
2026-05-12 15:49:39 -04:00
Mickaël Germain 96c9a9c67d list: Reject macros as APPLY/PREDICATE/COMPARATOR arguments
Fixes: #27781
2026-05-12 12:30:43 -07:00
Matthew Woehlke db4eb6fb91 CMP0218: Clarify when policy applies
Handling of `CMAKE_{WARN,ERROR}_DEPRECATED` in CMake 4.3 is truly
atrocious; some places look at the non-cache values, while others only
care about the `cmMessenger` state (which is synchronized with the cache
values of said variables). For CMP0218, we do not introduce any new
instances of examining the non-cache values. Try to clarify the policy
description to better state which historic diagnostics are affected, and
which are not.
2026-05-12 13:09:30 -04:00
Brad King 05c103d92a Merge topic 'FILE_SET-manage-file-unicity'
4f120beea9 FILE_SET: relax file uniqueness for HEADERS type

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12039
2026-05-12 10:55:07 -04:00
Brad King 47b80d2a8a Merge topic 'cmake-diagnostics-relnotes'
629badc0c8 Diagnostics: Add release notes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12032
2026-05-12 10:39:29 -04:00
Daniel Pfeifer 585e0d5878 ctest_update: Add options VERSION_ONLY and VERSION_OVERRIDE 2026-05-12 13:45:00 +02:00
Matthew Woehlke 629badc0c8 Diagnostics: Add release notes 2026-05-11 14:07:28 -04:00