Commit Graph
75196 Commits
Author SHA1 Message Date
Kitware Robot 2ff2990049 CMake Nightly Date Stamp 2026-04-16 00:05:17 -04:00
Brad King fd6234fc8c Merge branch 'release-4.3' 2026-04-15 11:48:03 -04:00
Brad King 35f7629b6e Merge topic 'revert-extract-symlink'
4397f89c16 Restore archive extraction between directory symlinks
6e638ce109 Tests/File_Archive: Relax stderr line matching

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11931
2026-04-15 11:48:03 -04:00
Brad King 7e4ed5a9c1 Merge topic 'revert-extract-symlink' into release-4.3
4397f89c16 Restore archive extraction between directory symlinks
6e638ce109 Tests/File_Archive: Relax stderr line matching

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11931
2026-04-15 11:48:01 -04:00
Brad King ef3b00dbbb Merge topic 'ctest-no-failed'
d0100b4060 ctest: Avoid printing `failed` if nothing failed

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11934
2026-04-15 10:50:16 -04:00
Brad King 111454d8e0 Merge topic 'cmake-diagnostics-state'
99318e49b9 Help: Mention when diagnostics were added
daec98ba61 Diagnostics: Fix passing diagnostic state to try_compile
e0b0ac4295 Diagnostics: Overhaul warnings in cmake-gui
ca5d569524 Diagnostics: Switch state to new system
618c074a8c Diagnostics: Use categories for presets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11855
2026-04-15 10:29:06 -04:00
Brad King f9170481f1 Merge topic 'cpack-nsis-ignore-components-page'
8046ceadf3 CPack/NSIS: Add option to not display component selection page

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11927
2026-04-15 09:40:25 -04:00
Brad King 802fbb5bbe Merge topic 'aix-no-toolchain-rpath'
fa1218290d AIX: Fix INSTALL_REMOVE_ENVIRONMENT_RPATH with GNU compiler
6e4c378b3e cmComputeLinkInformation: Clarify platform/toolchain RPATH handling comments

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11933
2026-04-15 09:32:13 -04:00
Brad King 2c8743f1a4 Merge topic 'ci-nvhpc26.3'
883e82aa7e ci: Update NVHPC to version 26.3

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11936
2026-04-15 09:29:24 -04:00
Kitware Robot 53d49e5aa4 CMake Nightly Date Stamp 2026-04-15 00:05:01 -04:00
Brad King 883e82aa7e ci: Update NVHPC to version 26.3
It uses CUDA 13.2, which requires GPU arch 75 or above.
2026-04-14 16:29:10 -04:00
Aditya Kamath fa1218290d AIX: Fix INSTALL_REMOVE_ENVIRONMENT_RPATH with GNU compiler
Since commit baa33acbda (AIX-GNU: Put implicit link directories in
runtime libpath, 2013-02-14, v2.8.11~184^2~1) we explicitly add the GNU
compiler driver's builtin RPATH entries.  Extend commit f08dcbffec
(Property: Add INSTALL_REMOVE_ENVIRONMENT_RPATH property, 2019-07-12,
v3.16.0-rc1~350^2~1) to exclude them.

Fixes: #27738
2026-04-14 16:01:18 -04:00
Tyler Yankee 4397f89c16 Restore archive extraction between directory symlinks
Commit 03f19aa4ea (cmSystemTools: Fix path traversal vulnerability in
archive extraction, 2026-01-06, v4.3.0-rc1~179^2) incidentally
introduced the `ARCHIVE_EXTRACT_SECURE_SYMLINKS` flag when extracting
archives, which prevents extraction of objects whose location would be
altered by a symlink on disk. However, this particular behavior change
was never documented or tested alongside the other changes in the
commit (absolute paths and path traversal components).

Divergent behavior of this flag from `libarchive` on Windows and
non-Windows platforms needs further investigation. In particular, on
Windows, archives cannot be extracted through directory symlinks, but
can be extracted through junctions. On Linux, archives *can* still be
extracted through symlinks, and archives containing symlinks can be
extracted as well.

The symlink change breaks compatibility with many common use cases of
existing projects, e.g., when extracting an archive inside a symlinked
build directory. Revert the flag until this issue can be explored in a
future version of CMake.

Fixes: #27752
Reported-by: scivision <scivision@users.noreply.github.com>
2026-04-14 15:57:13 -04:00
scivision d0100b4060 ctest: Avoid printing failed if nothing failed
Fixes: #27607
2026-04-14 15:56:49 -04:00
Brad King 6e4c378b3e cmComputeLinkInformation: Clarify platform/toolchain RPATH handling comments 2026-04-14 15:49:46 -04:00
Tyler Yankee 6e638ce109 Tests/File_Archive: Relax stderr line matching
"Compression format unsupported" errors of this form can only possibly
come from `file(ARCHIVE_CREATE)`, so we don't need to track the line
number of the called function. Reduce the need to update these numbers
every time the test helper script is updated.
2026-04-14 15:48:36 -04:00
Matthew Woehlke 99318e49b9 Help: Mention when diagnostics were added 2026-04-14 12:42:33 -04:00
Matthew Woehlke daec98ba61 Diagnostics: Fix passing diagnostic state to try_compile
Do not propagate deprecated diagnostic variables to try_compile.
Instead, if any diagnostic is ignored in the calling instance, also
ignore it in the try_compile instance.
2026-04-14 12:42:33 -04:00
Matthew Woehlke e0b0ac4295 Diagnostics: Overhaul warnings in cmake-gui
Replace the old (and poorly designed) mechanisms for altering warnings
in cmake-gui with a new warning tree that adaptively handles all
diagnostic categories that are defined.
2026-04-14 12:42:33 -04:00
Matthew Woehlke ca5d569524 Diagnostics: Switch state to new system
Add an additional state to the cmake instance to track diagnostics. Use
this to initialize any new/reset states we create so that other contexts
will inherit the diagnostic state from presets / command-line options.
Modify the front-end to map presets and -W command-line options to
manipulation of this new diagnostic state. Remove old members for
storing diagnostic state. Rework how diagnostic state is persisted.
Deprecate old, non-standard spellings for manipulating diagnostics.
Deprecate old 'dev' spelling for CMD_AUTHOR.

Note that this is a work in progress. Messaging has not yet been
updated, so the new state is not yet being used to control diagnostics,
and some of the logic to update the old state has been stripped (and
will eventually be removed entirely). Backward compatibility support for
the deprecated CMAKE_{WARN,ERROR}_DEPRECATED variables is only partially
implemented. The GUI's interface for manipulating warnings is partially
broken and needs to be overhauled. These tasks are being done in
separate commits in order to minimize review burden and keep the changes
per commit / per merge request more manageable.
2026-04-14 12:42:33 -04:00
Brad King d5103f3e80 Merge topic 'FILE_SET-target-is-framework'
2dda1f21ab FILE_SET: enhance FRAMEWORK compatibility checks

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11929
2026-04-14 10:30:33 -04:00
Chris Mocock 8046ceadf3 CPack/NSIS: Add option to not display component selection page
Fixes: #27754
2026-04-14 15:16:01 +01:00
Brad King 775dc91c48 Merge topic 'iar-treat-warings-as-errors'
ff75907e9a IAR: Implement COMPILE_WARNING_AS_ERROR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11924
2026-04-14 10:00:12 -04:00
Brad King 2c681f33b3 Merge topic 'presets-impr'
427cf86cb8 cmCMakePresetsGraph: better name for a local variable of `PrintPresets`
0f3347bb27 cmCMakePresetsGraph: generalize printing presets of different types
9638624ebe cmCMakePresetsGraph: move the static `PrintPresets` out of class
f60a1270bc cmCMakePresetsGraph: move static members to private scope
0bf8df384c cmCMakePresetsGraph: use `std::setw` instead of for-loop + one space at time
43a18bfaee cmCMakePresetsGraph: simplify presets printing
9aa7036093 cmCMakePresetsGraph: `printPrecedingNewline()` no need to be a member
37853f25b7 cmCMakePresetsGraph: `class` -> `typename` in template declarations
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11822
2026-04-14 09:56:00 -04:00
Brad King 0afca0c1e0 Merge topic 'CPACK_RPM_SPEC_MORE_DEFINE-list2string'
30aa150c25 CPack/RPM: `CPACK_RPM_SPEC_MORE_DEFINE` could be a list

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11899
2026-04-14 09:53:55 -04:00
Brad King 7bc4ff7c8a Merge topic 'cpack-deb-dbgsym-md5sums'
1ef92d645d CPack/DEB: fix `md5sums` paths in dbgsym packages

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Sergey Tsatsulin <tsatsulin@gmail.com>
Merge-request: !11923
2026-04-14 09:52:13 -04:00
Brad King 645f239dec Merge topic 'doc-ctest-steps'
cec6248a94 Help/ctest_*: Improve documentation around the edges

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11928
2026-04-14 09:47:39 -04:00
Brad King f225d945a5 Merge branch 'release-4.3' 2026-04-14 09:32:46 -04:00
Brad King 68827037ce Merge branch 'release-4.2' 2026-04-14 09:32:39 -04:00
Brad King f65724ffa7 Merge branch 'release-4.1' 2026-04-14 09:32:34 -04:00
Brad King 14af72d0e1 Merge branch 'release-4.0' 2026-04-14 09:32:29 -04:00
Brad King 77670de5e6 Merge branch 'release-4.2' into release-4.3 2026-04-14 09:32:16 -04:00
Brad King 6af72baf24 Merge branch 'release-4.3' 2026-04-14 09:24:41 -04:00
Brad King ebb680c87f Merge topic 'cmake-P-script-case'
1707e4e0ed Merge branch 'backport-4.2-cmake-P-script-case'
a2f1866d86 Merge branch 'backport-4.0-cmake-P-script-case'
a3358bb66a cmake: Restore normalization of `-P` script to on-disk path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11930
2026-04-14 09:24:40 -04:00
Brad King 8bd8d8e723 Merge topic 'cmake-P-script-case' into release-4.3
1707e4e0ed Merge branch 'backport-4.2-cmake-P-script-case'
a2f1866d86 Merge branch 'backport-4.0-cmake-P-script-case'
a3358bb66a cmake: Restore normalization of `-P` script to on-disk path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11930
2026-04-14 09:24:39 -04:00
Brad King c8ad7630b0 Merge branch 'release-4.1' into release-4.2 2026-04-14 09:23:27 -04:00
Brad King 0fa2042738 Merge topic 'backport-4.2-cmake-P-script-case' into release-4.2
a2f1866d86 Merge branch 'backport-4.0-cmake-P-script-case'
a3358bb66a cmake: Restore normalization of `-P` script to on-disk path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11930
2026-04-14 09:23:13 -04:00
Brad King 3856e2bfe0 Merge branch 'release-4.0' into release-4.1 2026-04-14 09:22:32 -04:00
Brad King 193b4ecda1 Merge topic 'backport-4.0-cmake-P-script-case' into release-4.1
a3358bb66a cmake: Restore normalization of `-P` script to on-disk path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11930
2026-04-14 09:22:19 -04:00
Brad King 6cc7d52bc6 Merge topic 'backport-4.0-cmake-P-script-case' into release-4.0
a3358bb66a cmake: Restore normalization of `-P` script to on-disk path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11930
2026-04-14 09:21:40 -04:00
Brad King 117e3c631b Merge branch 'release-4.3' 2026-04-14 09:19:32 -04:00
Brad King b412f9b654 Merge topic 'STRING-REGEX-MATCH-regression'
b24c60325a string(REGEX MATCH): Restore reporting of matches with semicolons

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11921
2026-04-14 09:19:31 -04:00
Brad King 311bbb35cf Merge topic 'STRING-REGEX-MATCH-regression' into release-4.3
b24c60325a string(REGEX MATCH): Restore reporting of matches with semicolons

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11921
2026-04-14 09:19:29 -04:00
Brad King 87621b4e81 Merge topic 'readme-build-no-openssl'
e124aeae8b README: Explicitly document how to bootstrap without OpenSSL

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11920
2026-04-14 09:16:28 -04:00
Kitware Robot 5e4d01366e CMake Nightly Date Stamp 2026-04-14 00:05:23 -04:00
Tyler Yankee cec6248a94 Help/ctest_*: Improve documentation around the edges
Improve standardization and cross-references. This doesn't make any
substantial changes to the existing prose.
2026-04-13 14:32:01 -04:00
Brad King 1707e4e0ed Merge branch 'backport-4.2-cmake-P-script-case' 2026-04-13 14:27:21 -04:00
Brad King a2f1866d86 Merge branch 'backport-4.0-cmake-P-script-case' 2026-04-13 14:23:26 -04:00
Brad King a3358bb66a cmake: Restore normalization of -P script to on-disk path
This was missed in commit ee83165923 (cmake: Explicitly normalize
input paths as they exist on disk, 2024-10-17, v4.0.0-rc1~597^2),
causing `CMAKE_CURRENT_LIST_FILE` in `cmake -P` scripts to be
regressed by the KWSys behavior change merged by commit e9bd437a43
(Merge branch 'upstream-KWSys' into normalize-input-paths,
2024-10-24, v4.0.0-rc1~589^2~1).

Issue: #27750
2026-04-13 12:25:20 -04:00
Marc Chevrier 2dda1f21ab FILE_SET: enhance FRAMEWORK compatibility checks
The SOURCES file set type is compatible with the FRAMEWORK target.
Add check at generation time.

Fixes: #27705
2026-04-13 17:55:36 +02:00