9620 Commits
Author SHA1 Message Date
Brad King d1cffecacd CMake 4.4.1 2026-07-28 10:26:50 -04:00
Brad King 32d437aa49 Merge topic 'FindPython-add-pydebug-ABI-support-on-Windows' into release-4.4
84cb7e2629 FindPython: Add support for pydebug ABI flag on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12325
2026-07-28 09:35:23 -04:00
Marc Chevrier 84cb7e2629 FindPython: Add support for pydebug ABI flag on Windows
Fixes: #27969
2026-07-26 17:10:25 +02:00
Brad King 96b3a4e6c7 Style: Replace some UTF-8 characters with ASCII equivalents 2026-07-24 09:55:14 -04:00
Brad King 8dd7eb41bb Merge topic 'vs-clangcl-modules' into release-4.4
027b962a81 VS: Avoid unsupported ScanSourceForModuleDependencies under ClangCl

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !12301
2026-07-22 09:55:42 -04:00
Brad King 5175aa4872 Merge topic 'doc-ide-compiler-selection' into release-4.4
90e2a33dba Help/CMAKE_LANG_COMPILER: Document Visual Studio, Xcode, GHS generators quirks

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12296
2026-07-22 09:52:29 -04:00
leha-bot 90e2a33dba Help/CMAKE_LANG_COMPILER: Document Visual Studio, Xcode, GHS generators quirks
They don't support setting compiler via this variable, they use the
toolsets, so you could switch the compiler by choosing another toolset.

Closes: #21644
2026-07-21 17:39:07 -04:00
Tyler Yankee 027b962a81 VS: Avoid unsupported ScanSourceForModuleDependencies under ClangCl
As of commit ed48feeae8 (clang-cl: Add support for C++ modules,
2026-03-27, v4.4.0-rc1~428^2) CMake tries to support modules for
clang-cl, which can mostly be accomplished, except for the ClangCl VS
toolset, where the /scanDependencies flag is not yet supported.

Amend commit 3022f0363f (VS: set ScanSourceForModuleDependencies at
vcxproj level, 2024-04-27, v3.28.5~3^2) to only emit this setting when
scanning is supported by the toolchain.

Fixes: #27957
Issue: #27977
2026-07-21 17:02:29 -04:00
FeRD (Frank Dana) 8df169ebe1 Help: target_sources: Align descriptions with signatures
Recent changes to the `target_sources()` docs changed the `<items>`
placeholders to `<source>` or `<files>` (for `FILE_SET` commands),
but the documentation still used "items" frequently, and even
`<items>` once.

Change all mentions of "items" to use terms that match the
corresponding placeholders, for consistency.
2026-07-21 15:42:13 -04:00
Tyler Yankee 273c414ece Help: Dedent multiple install --components note 2026-07-03 09:09:59 -04:00
Brad King 344c4ed360 Merge topic 'import-std-refactor' into release-4.4
42d2d63235 c++modules: Copy props from BMI consumers more correctly
6d3e9d8220 c++modules: single import std target

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !12193
2026-06-22 18:21:00 -04:00
Aiden Woodruff abee191e93 Help/tutorial: reword Installation Commands intro
Signed-off-by: Aiden Woodruff <aiden.woodruff@kitware.com>
2026-06-22 12:08:38 -04:00
Aiden Woodruff 15bd933fc4 Help/tutorial: fix minor typos
Signed-off-by: Aiden Woodruff <aiden.woodruff@kitware.com>
2026-06-22 12:08:38 -04:00
Vito Gamberini 6d3e9d8220 c++modules: single import std target 2026-06-18 15:20:54 -04:00
Daksh Mamodiya 330b36dddc instrumentation: Fix stale version references in documentation
Four per-format version descriptions in cmake-instrumentation.7.rst
still claimed the data version is always 1.0, contradicting both the
authoritative Data Version paragraph (which says 1.1) and the JSON
schemas (which accept minor versions 0 and 1).

Replace the hardcoded version claims with a reference to the Data
Version section, so these lines remain correct as future minor
versions are added without requiring additional doc updates.

Fixes: #27889
2026-06-18 16:47:52 +02:00
Brad King 672ddaa5b7 Merge branch 'release-4.3' into release-4.4 2026-06-17 10:22:00 -04:00
Brad King c2fd48014f CMake 4.3.4 2026-06-17 09:53:06 -04:00
Brad King 0e9598ba0e Merge branch 'release-4.3' into release-4.4 2026-06-17 09:40:23 -04:00
Brad King 8cf3d277b7 Merge branch 'release-4.2' into release-4.3 2026-06-17 09:40:16 -04:00
Brad King 24581cbe98 CMake 4.2.7 2026-06-17 09:01:47 -04:00
Brad King d20e909f3d Merge topic 'if-diagnostic' into release-4.4
597c573d7d if: Add `DIAGNOSTIC <category>` condition

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12181
2026-06-17 08:54:47 -04:00
Matthew Woehlke 597c573d7d if: Add DIAGNOSTIC <category> condition
Add an existence check to the `if` command for diagnostic categories,
mirroring the check for policies. Aside from being desirable for
consistency's sake, this will make it easier for users to write logic to
manipulate diagnostics from newer versions of CMake that don't exist
today.
2026-06-16 15:14:13 -04:00
Tyler Yankee bf71991174 instrumentation: Add JSON schema for snippet files
Issue: #27504
2026-06-15 10:35:53 -04:00
Brad King 09b9fc300b Merge topic 'instrumentation-data-version-minor' into release-4.4
5405a8a7e3 Help: Add release note for the instrumentation version format change in 4.3.4

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Tyler Yankee <tyler.yankee@kitware.com>
Merge-request: !12168
2026-06-15 10:29:28 -04:00
Zack Galbreath 3b6247a148 ctest: Honor preset binaryDir for initial configuration
Prior to this commit, ctest would sometimes use the current working directory
as its binary directory rather than honoring `binaryDir` from a configure
preset. This would occur when using ctest in dashboard client mode to perform
an initial configuration with a preset.

  `ctest --source-dir=<dir> -T Configure -D CTEST_PRESET=<preset>`

An explicit `--build-dir` still takes precedence over the preset's `binaryDir`.
2026-06-13 08:50:33 -04:00
Brad King 5405a8a7e3 Help: Add release note for the instrumentation version format change in 4.3.4
This was missed in commit df36317176 (instrumentation: Revise Data
Version format, 2026-05-29, v4.4.0-rc1~43^2^2).

Closes: #27870
2026-06-12 09:22:55 -04:00
Brad King cd7328bd29 Merge topic 'cuda-add-std23-nvcc-support' into release-4.4
d01c9a429b CUDA: Add support for cuda_std_23 for nvcc 13.3+

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12162
2026-06-11 10:25:32 -04:00
Brad King 8d4479c2f9 Merge topic 'instrumentation-ftime-trace' into release-4.4
576471ba47 Help/instrumentation: Add release notes for instrumentation data version 1.1
0480222ff4 instrumentation: Add compileTrace option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12048
2026-06-11 10:16:57 -04:00
Martin Duffy 576471ba47 Help/instrumentation: Add release notes for instrumentation data version 1.1 2026-06-10 15:19:41 -04:00
Martin Duffy 0480222ff4 instrumentation: Add compileTrace option
Adds support for optionally saving and reporting trace files generated by
Clang's `-ftime-trace` option.
2026-06-10 15:19:41 -04:00
Arha Gatram d01c9a429b CUDA: Add support for cuda_std_23 for nvcc 13.3+
CUDA 13.3 has been released with support for `-std=c++23`.
2026-06-10 13:27:03 -04:00
Brad King 4969297469 IBMFlang: Rename compiler id from IBMLLVMFlang
Rename the compiler id from commit ee76398d23 (IBMLLVMFlang: Add support
for this compiler, 2026-05-25) to mention only the direct vendor, IBM.

Issue: #27863
2026-06-09 08:14:23 -04:00
Craig Scott 49ae4b6811 Help: Improve wording, formatting and consistency of 4.4 release notes 2026-06-08 20:21:26 +10:00
Craig Scott 3284117eb4 Help: Fix list formatting for INDEPENDENT_FILES file set property 2026-06-08 20:21:26 +10:00
Craig Scott 3153049509 Help: State behavior when test args are given in preset and command line
The test presets description for the testPassthroughArguments
field already states the behavior, but it was missing from the
ctest -- <test-args> documentation.
2026-06-08 20:21:25 +10:00
Craig Scott 57469d1fad Help: Fix reversed ${fileDir} results for Base-Derived example 2026-06-08 20:21:23 +10:00
Brad King 059170f19c Merge topic 'instrumentation-stderr-stdout' into release-4.4
8e2aecbe42 instrumentation: Increase data version to 1.1
1a85245496 instrumentation: Optionally Record Command Output
6674be6d26 RunCMake: Allow error output suppression from run_cmake

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12031
2026-06-05 10:51:52 -04:00
Brad King 1081423099 Merge topic 'doc-message-log-level' into release-4.4
ef5e1e3a5b Help: Fix references to cmake_language(GET_MESSAGE_LOG_LEVEL)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12144
2026-06-05 09:25:00 -04:00
Brad King 34af6cb307 Help: Drop development topic notes to prepare release
Release versions do not have the development topic section of
the CMake Release Notes index page.
2026-06-04 11:58:37 -04:00
Brad King 880290c696 Help: Update Sphinx versionadded directives for 4.4 release
Run the script:

    Utilities/Sphinx/update_versions.py --since v4.3.0 --overwrite
2026-06-04 11:46:51 -04:00
Martin Duffy 8e2aecbe42 instrumentation: Increase data version to 1.1 2026-06-04 10:42:04 -04:00
Martin Duffy 1a85245496 instrumentation: Optionally Record Command Output
Add `stdout`  and `stderr` reporting to instrumentation for `compile`, `link`,
`custom`, `install` and `test` snippets when the `captureOutput` option is
enabled.

Fixes: #26704
2026-06-04 10:42:04 -04:00
Brad King c81ad30732 Help: Organize and revise 4.4 release notes
Add section headers similar to the 4.3 release notes and move each
individual bullet into an appropriate section.  Revise a few bullets.
2026-06-04 10:29:37 -04:00
Brad King 8e256cc671 Help: Consolidate 4.4 release notes
Run the `Utilities/Release/consolidate-relnotes.bash` script to move
notes from `Help/release/dev/*` into `Help/release/4.4.rst`.
2026-06-04 10:29:30 -04:00
Brad King 710b2f582d Merge topic 'fix-cmp0186-typo'
01c8417cd2 Help: Fix typo in example of CMP0186

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12143
2026-06-04 10:22:22 -04:00
Brad King 94b8cc237d Merge topic 'fix-cmp0186-typo' into release-4.3
01c8417cd2 Help: Fix typo in example of CMP0186

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12143
2026-06-04 10:22:20 -04:00
Brad King a216e094c1 Merge topic 'fix-cmp0186-typo' into release-4.2
01c8417cd2 Help: Fix typo in example of CMP0186

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12143
2026-06-04 10:16:17 -04:00
Julien Jorge 01c8417cd2 Help: Fix typo in example of CMP0186
For CMake 4.1 and above the result of

    string(REGEX REPLACE "^a" "b" result "aaaa")

is `"baaa"`, not `"abbb"`.
2026-06-04 10:14:19 -04:00
Brad King 635b42c3ff Merge topic 'ibm-flang'
ee76398d23 IBMLLVMFlang: Add support for this compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12138
2026-06-04 10:09:27 -04:00
Brad King 850ca80ce8 Merge topic 'ctest_submit_parts'
a798a84b22 ctest: add new variable CTEST_SUBMIT_PARTS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !12135
2026-06-04 10:08:20 -04:00