Commit Graph

72878 Commits

Author SHA1 Message Date
Kitware Robot
b8de18df08 CMake Nightly Date Stamp 2025-11-07 00:09:13 -05:00
Brad King
073d0b50d0 Merge branch 'release-4.2' 2025-11-06 13:26:13 -05:00
Brad King
b95d5b31ab Merge topic 'fix-cps-crash-on-bad-input'
fa4bed7844 cmPackageInfoReader: Don't crash if input is malformed
be99a82eee cmPackageInfoReader: Just use std::string

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11390
2025-11-06 13:26:13 -05:00
Brad King
38095c2da5 Merge topic 'fix-cps-crash-on-bad-input' into release-4.2
fa4bed7844 cmPackageInfoReader: Don't crash if input is malformed
be99a82eee cmPackageInfoReader: Just use std::string

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11390
2025-11-06 13:26:10 -05:00
Brad King
1736cf85c0 Merge branch 'release-4.2' 2025-11-06 13:24:38 -05:00
Brad King
55b083c4a6 Merge topic 'improve-cps-find_package-failure-reporting'
6c2fc502b6 find_package: Report why a candidate was rejected

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11377
2025-11-06 13:24:38 -05:00
Brad King
6b03947c2c Merge topic 'improve-cps-find_package-failure-reporting' into release-4.2
6c2fc502b6 find_package: Report why a candidate was rejected

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11377
2025-11-06 13:24:36 -05:00
Brad King
74759099e9 Merge topic 'file-CREATE_LINK-COPY_ON_ERROR-dir'
7136da86cb Help: Add release note for policy CMP0205

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex Overchenko <aleksandr9809@gmail.com>
Merge-request: !11391
2025-11-06 13:22:08 -05:00
Kitware Robot
6b0663f860 CMake Nightly Date Stamp 2025-11-06 00:07:04 -05:00
Brad King
7136da86cb Help: Add release note for policy CMP0205
This was missed in commit a73ddd2ddb (file(CREATE_LINK): Implement
COPY_ON_ERROR for directories, 2025-10-15).
2025-11-05 16:05:04 -05:00
Matthew Woehlke
fa4bed7844 cmPackageInfoReader: Don't crash if input is malformed
Check all instances of converting a JSON value to a string to ensure
that we check first if the value is convertible, in order to avoid an
exception being thrown, which crashes CMake. Modify some instances to
report when we encounter such invalid values. (Many instances, however,
just silently ignore invalid values.)

Fixes: #27350
2025-11-05 11:29:13 -05:00
Matthew Woehlke
be99a82eee cmPackageInfoReader: Just use std::string
Change cmPackageInfoReader::SetMetaProperty to just take the property
name as a std::string. We end up constructing one when we call
cmTarget::SetProperty, so we might as well do it up front and be done
with it. (Before, we were converting a string_view to char*, which is
decidedly non-optimal.)
2025-11-05 10:46:09 -05:00
Matthew Woehlke
6c2fc502b6 find_package: Report why a candidate was rejected
Improve how find_package reports the list of candidate package
configuration files that were considered but rejected to include a
reason for rejection. For CPS in particular, this allows the user to
tell if a CPS file was rejected due to a version mismatch, missing
required components, or because the file could not be read.

While we do not try to report more detail for why cmPackageInfoReader
rejected a file, the possible reasons are usually easy enough to
distinguish:

- The file is so malformed that we cannot read a JSON object.
- The schema version is not a version that CMake understands.
- The root object does not contain a string named "name".
- The root object does not contain an object named "components".
- Prefix resolution failed.

Three of these can only result from a file that fails schema validation.
2025-11-05 10:45:23 -05:00
Brad King
303ffae24f Merge topic 'deprecate-CMAKE_ENABLE_EXPORTS'
33d9146472 CMAKE_ENABLE_EXPORTS: Deprecate variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11381
2025-11-05 10:25:26 -05:00
Brad King
7bcdf7353a Merge topic 'ci-macos-qt-6.9.3'
3f21bf9f0a ci: Restore packaging with macOS SDK from Xcode
c1ee4d57dc Utilities/Release: Remove unused Qt 5.15.2 build script for macOS
0f18aa010e ci: Update to Qt 6.9.3 on macOS
2ae318bb5d cmake-gui: Install only necessary plugins for Qt 6
74dec2c7fd cmake-gui: Detect Qt lib directory on macOS more robustly
0d1321770d cmake-gui: Clarify signature of QCheckBox::checkStateChanged callbacks
a49e5c8eb9 Utilities/Release: Teach macOS notarization script to sign Qt artifacts

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11386
2025-11-05 10:22:20 -05:00
Kitware Robot
1463723e4a CMake Nightly Date Stamp 2025-11-05 00:06:13 -05:00
Peter Kokot
33d9146472 CMAKE_ENABLE_EXPORTS: Deprecate variable
This makes it more clear which variable should be used.

Fixes #27357
2025-11-04 20:07:39 +01:00
Brad King
153d9c2067 Merge branch 'release-4.2' 2025-11-04 13:33:51 -05:00
Brad King
543ca7f081 Merge topic 'improve-codespell'
7cc114601a codespell: Prune ignore list
d197474083 codespell: Ignore test output regexes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11388
2025-11-04 13:33:50 -05:00
Brad King
6ece8dee79 Merge topic 'improve-codespell' into release-4.2
7cc114601a codespell: Prune ignore list
d197474083 codespell: Ignore test output regexes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11388
2025-11-04 13:33:49 -05:00
Matthew Woehlke
7cc114601a codespell: Prune ignore list
Remove entries from the codespell ignore list that do not seem to be
present any more. Also, remove a deliberate typo and instead add a local
annotation to ignore it.

This list is still uncomfortably long, but unfortunately current
versions of codespell do not offer any granularity in between annotating
individual uses (which is not practical in most cases) or globally
ignoring words (which is overly broad and risks missing real errors).
2025-11-04 13:13:09 -05:00
Matthew Woehlke
d197474083 codespell: Ignore test output regexes
Ignore RunCMake output regexes (i.e. *-stdout.txt, *-stderr.txt) when
checking spelling. Because these are regular expressions, they have a
higher likelihood of having false positives, and because they are
expected output, any text they contain ought to also appear in whatever
code generates it (or else, is probably text that depends on user input
and shouldn't be spell-checked anyway).
2025-11-04 13:12:56 -05:00
Brad King
8d16842e33 Merge topic 'file-CREATE_LINK-COPY_ON_ERROR-dir'
a73ddd2ddb file(CREATE_LINK): Implement COPY_ON_ERROR for directories
f719a36bc0 file(CREATE_LINK): Refactor error handling for removal of destination
0448f646a8 file(CREATE_LINK): Factor out dedicated test
a2a626055b cmSystemTools: Return KWSys Status from RepeatedRemoveDirectory

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11311
2025-11-04 12:02:47 -05:00
Brad King
cdbc2f6f17 Merge topic 'patch-GNUInstallDirs-DATADIR'
c05e60ecb2 GNUInstallDirs: Add more info about DATADIR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11378
2025-11-04 12:00:34 -05:00
Brad King
50b1346faa Merge branch 'release-4.2' 2025-11-04 11:24:41 -05:00
Brad King
8a2f0e819b Merge topic 'typos-1.39.0'
1405dc49e8 pre-commit: version bump `typos` and `sphinx-lint` hooks + fix found typos

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11380
2025-11-04 11:24:40 -05:00
Brad King
519d69c92c Merge topic 'typos-1.39.0' into release-4.2
1405dc49e8 pre-commit: version bump `typos` and `sphinx-lint` hooks + fix found typos

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11380
2025-11-04 11:24:30 -05:00
Brad King
6b0074e2d0 Merge branch 'release-4.2' 2025-11-04 10:47:08 -05:00
Brad King
070ddd6732 Merge topic 'fbuild_fix_superfluous_dirs'
2a5855f034 FASTBuild: fix superfluous directory creation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11379
2025-11-04 10:47:08 -05:00
Brad King
64f5c4d307 Merge topic 'fbuild_fix_superfluous_dirs' into release-4.2
2a5855f034 FASTBuild: fix superfluous directory creation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11379
2025-11-04 10:47:06 -05:00
Brad King
e42342ab83 Merge topic 'ci-cuda-13.0-aarch64'
dfab0151b8 ci: add job testing cuda13.0 on linux-aarch64 with nvcc
6d4a25e1c1 ci: Add base image for linux-aarch64 with cuda
5358425499 ci: rename cuda13.0-x86_64 base image spec to include architecture

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11384
2025-11-04 10:32:59 -05:00
Brad King
3f21bf9f0a ci: Restore packaging with macOS SDK from Xcode
We now build with Qt 6.9.3, which supports the macOS 26 SDK.
Revert commit baa8cab401 (ci: Revert packaging to macOS 15.5 SDK to
restore cmake-gui rendering, 2025-10-25, v4.2.0-rc2~19^2) and drop
supporting scripts.

Issue: #27325
2025-11-04 09:58:51 -05:00
Brad King
c1ee4d57dc Utilities/Release: Remove unused Qt 5.15.2 build script for macOS
We now use prebuilt Qt binaries.
2025-11-04 09:58:51 -05:00
Brad King
0f18aa010e ci: Update to Qt 6.9.3 on macOS
Get Qt updates fix `cmake-gui` button rendering when compiled with a
macOS 26 SDK.

Issue: #27325
2025-11-04 09:58:38 -05:00
Kitware Robot
7956f3c5c2 CMake Nightly Date Stamp 2025-11-04 00:07:00 -05:00
Brad King
2ae318bb5d cmake-gui: Install only necessary plugins for Qt 6 2025-11-03 11:05:04 -05:00
Brad King
74dec2c7fd cmake-gui: Detect Qt lib directory on macOS more robustly
Avoid assuming a specific path within a framework.
2025-11-03 11:05:04 -05:00
Brad King
0d1321770d cmake-gui: Clarify signature of QCheckBox::checkStateChanged callbacks
In commit cbf0d3da52 (cmake-gui: Port away from deprecated API in Qt >=
6.7, 2025-02-21, v4.1.0-rc1~755^2~4) we assumed that `Qt::CheckState` is
implemented as an `int`.  Spell out the type explicitly for the Qt 6.7+
callback signatures.
2025-11-03 11:05:04 -05:00
Brad King
a49e5c8eb9 Utilities/Release: Teach macOS notarization script to sign Qt artifacts 2025-11-03 11:05:04 -05:00
Alex Turbov
1405dc49e8 pre-commit: version bump typos and sphinx-lint hooks + fix found typos 2025-11-03 10:18:16 -05:00
Eduard Voronkin
2a5855f034 FASTBuild: fix superfluous directory creation
Fixes: #27356
2025-11-03 09:39:16 -05:00
Brad King
586cf25827 Merge topic 'cmake-gui-macos-install'
7ebad5d201 cmake-gui: Refactor installation into CMake.app/Contents on macOS
a65d986850 cmake-gui: Simplify macOS bundle version logic
91bb70cfcb Source: Factor out common parts of install layout variable loop item names

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11376
2025-11-03 08:35:45 -05:00
Kitware Robot
80d912e768 CMake Nightly Date Stamp 2025-11-03 00:09:28 -05:00
Kitware Robot
3a5a3af5d1 CMake Nightly Date Stamp 2025-11-02 00:04:41 -04:00
Peter Kokot
c05e60ecb2 GNUInstallDirs: Add more info about DATADIR 2025-11-01 21:42:55 +01:00
Kitware Robot
00f5aa25a3 CMake Nightly Date Stamp 2025-11-01 00:05:18 -04:00
Brad King
dfab0151b8 ci: add job testing cuda13.0 on linux-aarch64 with nvcc 2025-10-31 15:49:29 -04:00
Brad King
6d4a25e1c1 ci: Add base image for linux-aarch64 with cuda 2025-10-31 15:35:08 -04:00
Brad King
5358425499 ci: rename cuda13.0-x86_64 base image spec to include architecture 2025-10-31 15:05:41 -04:00
Brad King
7ebad5d201 cmake-gui: Refactor installation into CMake.app/Contents on macOS
Instead of mutating `CMAKE_INSTALL_PREFIX`, add a `CMake.app/Contents/`
prefix to install destinations besides the `cmake-gui` target itself.
2025-10-31 09:33:52 -04:00