Commit Graph
9346 Commits
Author SHA1 Message Date
Brad King 1efc5daef9 Merge topic 'doc-instrumentation-google-trace'
e056f53500 Help: Fix path to Google Trace File in cmake-instrumentation(7)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11892
2026-04-02 18:00:53 -04:00
Brad King e056f53500 Help: Fix path to Google Trace File in cmake-instrumentation(7)
Fix commit b8d8faf900 (Help/instrumentation: Improve CMake
Instrumentation documentation, 2026-03-24, v4.3.1~4^2).

Fixes: #27734
2026-04-02 13:09:37 -04:00
Brad King ad50d3e3d8 Merge topic 'short-cmake-option-refs'
3d82ccbe0d Help: Add roles to abbreviate command-line options

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11883
2026-04-01 13:41:12 -04:00
Brad King 5e57306864 Merge topic 'FILE_SET-SOURCES'
c386aaebf8 FILE_SET: install and export SOURCES file set type
5c5b68f44e FILE_SET: Add support for the SOURCES type
5697bcced0 BT<> and cmLocalGenerator: Add helpers functions
42ca2a2062 cmEvaluatedTargetProperty: put declarations in namespace cm

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11863
2026-04-01 13:39:12 -04:00
Brad King e8f5af42b5 Merge topic 'help-testdir'
67c84ef103 Help: Indicate that `ctest --test-dir` may be specified with a preset
02e9335d9c Help: Document that `cmake --preset` supports `-B` to override the build dir
c288ecddb2 Help: Revise versioning note for `cmake --build` with both dir and preset

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11880
2026-04-01 13:36:06 -04:00
Matthew Woehlke 3d82ccbe0d Help: Add roles to abbreviate command-line options
Add a handful of helper roles that allow many more command-line option
references to be written without explicit targets. Specifically, what
used to be written ':option:`--foo[=bar] <program --foo>` can now be
written ':program-option:`--foo`'. This allows many such references to
be significantly shortened.

For now, supported programs are 'cmake', 'cpack'. 'ctest',
'cmake--build' and 'cmake--install', which should cover most cases, but
more can be trivially added. Additionally, this does not make a
concerted effort to replace all existing uses, as it is intended mainly
for use in future updates.
2026-03-31 12:56:16 -04:00
scivision 67c84ef103 Help: Indicate that ctest --test-dir may be specified with a preset
In commit c971212703 (ctest: Allow --test-dir override when using
presets, 2024-04-20, v3.30.0-rc1~200^2) we forgot to update the docs.
2026-03-31 09:38:05 -04:00
scivision 02e9335d9c Help: Document that cmake --preset supports -B to override the build dir 2026-03-31 09:37:54 -04:00
Brad King c288ecddb2 Help: Revise versioning note for cmake --build with both dir and preset
Indent docs from commit 19296f507d (cmake --build: Allow CLI build dir
to override presets, 2025-11-17, v4.3.0-rc1~472^2) inside the `--preset`
option documentation.
2026-03-31 09:36:38 -04:00
Marc Chevrier c386aaebf8 FILE_SET: install and export SOURCES file set type 2026-03-31 09:50:09 +02:00
Marc Chevrier 5c5b68f44e FILE_SET: Add support for the SOURCES type
Fixes: #27550
2026-03-31 09:49:59 +02:00
Brad King 5eab2214a2 Merge topic 'rust-edition'
abe64ca2d3 Rust: Update experimental UUID
313769e766 Rust: Add support for Rust editions with Rust_EDITION target property
d0e39096b6 Rust: Fix unused import warning in RustOnly test

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11852
2026-03-30 08:32:37 -04:00
Brad King ed48feeae8 clang-cl: Add support for C++ modules
Since commit 4a4986d28a (cxxmodules: support command templates for BMI
compilation, 2026-03-25, v4.3.1~2^2~1) we can express module interface
unit compilation to either object files or BMI-only in a way that works
with `clang-scan-deps` and `clang-cl` together.

Fixes: #25731
2026-03-27 15:39:33 -04:00
Brad King c1c6b13eb3 Merge branch 'release-4.3' 2026-03-27 09:36:09 -04:00
Brad King 3a7d797d5b CMake 4.3.1 2026-03-27 09:08:31 -04:00
Brad King 73763b86ea Merge branch 'release-4.2' 2026-03-27 09:02:29 -04:00
Brad King 9d6a1dbec6 Merge branch 'release-4.2' into release-4.3 2026-03-27 09:02:10 -04:00
Brad King cfbb1649dd CMake 4.2.4 2026-03-27 08:25:44 -04:00
Brad King 7a8f6cc160 Merge topic 'discover-tests'
4e34426fb3 TestDriver: Add '-N' option to print all tests
b7f83c37a4 create_test_sourcelist: Document command line arguments
8600ce6547 discover_tests: Add documentation
969999fa9f discover_tests: Add tests
3947842733 discover_tests: Add CMake command implementation
3f1fce6b48 discover_tests: Add CTest command implementation
d718a979b7 cmTestGenerator: Allow to be inherited from

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11758
2026-03-27 07:38:38 -04:00
Brad King 0e47cd8c7b Merge topic 'bmi-only-command-template'
7ebb5687ab cmGeneratorTarget: use typename for `flag`
4a4986d28a cxxmodules: support command templates for BMI compilation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11871
2026-03-27 07:36:26 -04:00
Brad King f7eff87604 Merge topic 'bmi-only-command-template' into release-4.3
7ebb5687ab cmGeneratorTarget: use typename for `flag`
4a4986d28a cxxmodules: support command templates for BMI compilation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11871
2026-03-27 07:36:24 -04:00
Brad King 2250c5e1f1 Merge topic 'tutorial'
53a2a77d19 Tutorial: Add missing entry in Step4 file list

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11873
2026-03-27 07:34:17 -04:00
Baudouin Feildel abe64ca2d3 Rust: Update experimental UUID 2026-03-26 23:15:58 +01:00
Baudouin Feildel 313769e766 Rust: Add support for Rust editions with Rust_EDITION target property 2026-03-26 23:15:58 +01:00
Gustaf Borgström 53a2a77d19 Tutorial: Add missing entry in Step4 file list
The root's `CMakeLists.txt` is also one of the files the need editing in
Exercise 1, but was missing.
2026-03-26 13:38:29 -04:00
Ben Boeckel 4a4986d28a cxxmodules: support command templates for BMI compilation
Some compilers (Clang) warn when using their BMI-only flag with `-c`.
Support a complete template for BMI compilation rather than an
additional flag to support such toolchains.

Fixes: #27600
2026-03-26 13:20:19 -04:00
Daniel Pfeifer 4e34426fb3 TestDriver: Add '-N' option to print all tests 2026-03-26 10:36:22 -04:00
Daniel Pfeifer b7f83c37a4 create_test_sourcelist: Document command line arguments 2026-03-26 10:36:22 -04:00
Daniel Pfeifer 8600ce6547 discover_tests: Add documentation 2026-03-26 10:36:22 -04:00
Brad King 79d2bd9f86 Merge topic 'help-prop'
917678157d Help: Note that generator expressions are supported only where documented

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11869
2026-03-26 10:23:07 -04:00
Brad King 811768e742 Merge topic 'file-archive-path-encoding'
97455c3d7e file: Add `ARCHIVE_*` options to specify pathname encoding
25af9288f9 Tests/RunCMake/File_Archive: Match expected errors more extensibly

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11853
2026-03-26 10:20:04 -04:00
Brad King 36e0b1a60a Merge topic 'instrumentation-doc-improve'
b8d8faf900 Help/instrumentation: Improve CMake Instrumentation documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11861
2026-03-26 10:16:37 -04:00
Brad King 8f55f50b34 Merge topic 'instrumentation-doc-improve' into release-4.3
b8d8faf900 Help/instrumentation: Improve CMake Instrumentation documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11861
2026-03-26 10:16:35 -04:00
scivision 917678157d Help: Note that generator expressions are supported only where documented
Issue: #27718
2026-03-25 13:36:22 -04:00
Martin Duffy b8d8faf900 Help/instrumentation: Improve CMake Instrumentation documentation
Fixes: #27688
2026-03-24 17:09:38 -04:00
AJIOB 97455c3d7e file: Add ARCHIVE_* options to specify pathname encoding
Issue: #26903
2026-03-24 14:07:21 -04:00
Brad King 0d5238a4e7 Merge topic 'doc-long-line'
899122e776 Help: Wrap long line in 4.3 versionadded note

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11865
2026-03-24 14:02:49 -04:00
AJIOB 899122e776 Help: Wrap long line in 4.3 versionadded note 2026-03-24 13:37:38 -04:00
Brad King d4ba046627 Merge topic 'doc-cxxmodules'
b401e43f25 Help: Call out `cmake-cxxmodules(7)` implementation details as unstable
6818426bdd Help: Drop outdated documentation of `import std` implementation details

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11859
2026-03-24 11:40:29 -04:00
Brad King d409bdbcc2 Merge topic 'custom-target-exe-deps'
858fdd426b add_custom_command: Disallow exe-suffixed targets in DEPENDS
58ab03c031 add_custom_command: Update dependency search heuristics

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11801
2026-03-24 09:11:34 -04:00
Baudouin Feildel 60aa09f038 PCH: Add CMAKE_DISABLE_PRECOMPILE_HEADERS environment variable
This provides a default for the cache entry of the same name.

Closes: #27609
2026-03-23 17:25:28 -04:00
Brad King b401e43f25 Help: Call out cmake-cxxmodules(7) implementation details as unstable
Documentation added by commit e9e94de9cb (Help/cmake-cxxmodules:
document the implementation, 2025-03-25, v4.3.0-rc1~214^2~1) is not
meant to describe a stable interface.

Issue: #27706
2026-03-23 17:09:41 -04:00
Brad King 6818426bdd Help: Drop outdated documentation of import std implementation details
Since commit fa10dc6c22 (Experimental/CXXModules: Implement EcoStd
Module Metadata parser, 2025-10-21, v4.3.0-rc1~483^2) the `import std`
implementation has changed.

Closes: #27706
2026-03-23 16:59:09 -04:00
Brad King 6bb0ec7d06 Merge topic 'patch-sbom-2'
d2aab1839e Help: Fix install(PACKAGE_INFO) and install(SBOM) argument typos

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11850
2026-03-23 10:33:32 -04:00
Tyler Yankee 858fdd426b add_custom_command: Disallow exe-suffixed targets in DEPENDS
Two targets whose names differ only in a `.exe` suffix create a
conflict when adding target- and file-level dependencies for a custom
command. Add CMP0212 to provide compatibility with the old behavior.

Issue: #27612
2026-03-23 09:50:46 -04:00
Peter Kokot d2aab1839e Help: Fix install(PACKAGE_INFO) and install(SBOM) argument typos
In commit 51f39a0f32 (Help: Fix install(SBOM) argument typo, 2026-02-27,
v4.3.0-rc2~8^2) the typo was fixed in the wrong signature.  Revert that
and fix the correct signature.
2026-03-23 09:45:17 -04:00
Brad King 3b7ab808a2 Merge topic 'FILE_SET-enforce-files-unicity'
167e903c15 FILE_SET: enforce uniqueness of files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11785
2026-03-23 09:41:20 -04:00
Marc Chevrier 167e903c15 FILE_SET: enforce uniqueness of files
A file should be unique for a target if specified as part of a file set.

Issue: #27035
2026-03-23 08:37:05 -04:00
Brad King 9cfa221b88 Merge topic 'ai-policy'
475cc5487f Help: Document CMake's AI policy

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11842
2026-03-23 08:18:50 -04:00
Brad King 89fe07f800 Merge topic 'rust-rlib'
e6a544836b Rust: Update experimental UUID
881faf67e5 Rust: Switch to building .rs files to .rlib instead of native object files
942ddcdd36 Rust: Add support for position independent code

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11686
2026-03-21 10:18:21 -04:00