Commit Graph

2310 Commits

Author SHA1 Message Date
Brad King
8832f78dd6 IWYU: Update for Debian 13 CI job
`include-what-you-use` diagnostics, in practice, are specific to
the environment's compiler and standard library.  Update includes
to satisfy IWYU for our CI job under Debian 13.  Some patterns:

* Types named in virtual `override` signatures no longer require
  includes since the overridden signature already names them.

* A function argument's type needs to be included even if its constructor
  is called only by implicit conversion.  For example, constructing a
  `std::function` from a lambda now requires `<functional>`.

* Some prior mysterious `<type_traits>` inclusions are no longer required.
2025-11-12 14:54:35 -05:00
Brad King
ffce9fa39c Utilities: Update hard-coded try_compile results for libarchive 3.8.2 2025-11-10 15:12:53 -05:00
Brad King
3c91d4427d libarchive: Set build options the way we need for CMake 2025-11-10 15:12:47 -05:00
Brad King
c0354ddf83 Merge branch 'upstream-LibArchive' into update-libarchive
* upstream-LibArchive:
  LibArchive 2025-10-15 (7f53fce0)
2025-11-10 15:12:12 -05:00
Brad King
93620e671b libarchive: Update script to get 3.8.2 2025-11-10 15:11:41 -05:00
Brad King
59534983c9 Merge topic 'update-common-tracking'
e1f4a35171 Utilities/Scripts: do not use exact tree match
1b03059674 update-common.sh: synchronize with upstream
98e410c4db git-fetch-file: track `update-common.sh`

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11397
2025-11-10 14:35:29 -05:00
Brad King
976512e7ec Merge topic 'update-curl'
fc5aed6035 curl: Restore support for custom CApath without a default
92dcb68826 curl: Set build options the way we need for CMake
8429b65f27 Merge branch 'upstream-curl' into update-curl
e28c33c159 curl 2025-11-05 (400fffa9)
87e10c1053 curl: Update script to get curl 8.17.0

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11394
2025-11-10 09:12:10 -05:00
Brad King
fc5aed6035 curl: Restore support for custom CApath without a default
Backport upstream curl commit `f55974c139` (vtls: fix CURLOPT_CAPATH
use, 2025-11-08).  It revises commit `eefd03c572` (ssl: support Apple
SecTrust configurations, 2025-09-24, `curl-8_17_0~443`) to accept
`CURLOPT_CAPATH` when there is no default `CURL_CA_PATH`.

CURL-Issue: https://github.com/curl/curl/issues/19401
CURL-PR: https://github.com/curl/curl/pull/19408
2025-11-09 08:50:16 -05:00
Ben Boeckel
e1f4a35171 Utilities/Scripts: do not use exact tree match
CMake patches its third party imports directly, so skip the exact match
strategy.
2025-11-08 07:45:05 -05:00
Ben Boeckel
1b03059674 update-common.sh: synchronize with upstream
Of note is the support for finding imports with matching trees, not just
commits.
2025-11-07 15:37:03 -05:00
Brad King
92dcb68826 curl: Set build options the way we need for CMake
Set options added by the update to curl 8.17.0.
2025-11-06 17:06:37 -05:00
Brad King
8429b65f27 Merge branch 'upstream-curl' into update-curl
* upstream-curl:
  curl 2025-11-05 (400fffa9)
2025-11-06 16:51:58 -05:00
Brad King
87e10c1053 curl: Update script to get curl 8.17.0 2025-11-06 16:49:50 -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
a49e5c8eb9 Utilities/Release: Teach macOS notarization script to sign Qt artifacts 2025-11-03 11:05:04 -05: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
Brad King
c11aa43ab8 Merge topic 'doc-cmake.org-tutorial-archive'
5473a45fd8 Tutorial: Restore source archive when published on cmake.org

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11370
2025-10-29 09:31:13 -04:00
Brad King
b22a77e337 Merge topic 'doc-cmake.org-tutorial-archive' into release-4.2
5473a45fd8 Tutorial: Restore source archive when published on cmake.org

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11370
2025-10-29 09:31:10 -04:00
Brad King
5473a45fd8 Tutorial: Restore source archive when published on cmake.org
Restore commit 4cb616fed6 (Tutorial: Provide a source archive when
published on cmake.org, 2022-04-27, v3.23.2~22^2).  Its effects were
accidentally reverted by commit 9784834b4c (Help: Use `*.rst` extension
for included files, 2025-04-07, v4.1.0-rc1~354^2).

Reported-by: Vito Gamberini <vito.gamberini@kitware.com>
2025-10-29 09:17:14 -04:00
Thomas Braun
9bd8c64e68 Merge branch 'upstream-bzip2' into update-bzip2
* upstream-bzip2:
  bzip2 2019-07-13 (6a8690fc)
2025-10-27 11:14:36 -04:00
Thomas Braun
cab14b9dfd bzip2: Prefer LF as EOL in dlltest.c
All other .c files have LF line endings, so there is no need to deviate
here.
2025-10-27 11:12:43 -04:00
Taylor Sasser
985b0f5bcf CMake C++11 Compatibility: Add more type_traits from C++14 and C++17 2025-10-22 13:01:12 -04:00
Brad King
6b5877a176 libarchive: Backport "parse_date: handle dates in 2038 and beyond"
Backport libarchive commit `2d987e725f` (parse_date: handle dates in
2038 and beyond if time_t is big enough, 2025-09-26).

Add a cmake-specific test case.

Fixes: #27263
2025-09-30 09:36:08 -04:00
Brad King
ff95dc7f44 libarchive: Set build options the way we need for CMake 2025-09-26 16:42:58 -04:00
Brad King
3f00851b3e libarchive: Add missing cm3p prefixes on includes
Issue: #20666
2025-09-26 16:40:31 -04:00
Brad King
4e5c2aadb1 libarchive: Rename cm_get_date wrapper to cm_parse_date
libarchive 3.8.0 renamed `__archive_get_date` to `archive_parse_date`.
2025-09-26 16:40:12 -04:00
Brad King
cf04a5cf27 Merge branch 'upstream-LibArchive' into update-libarchive
* upstream-LibArchive:
  LibArchive 2025-06-01 (9525f90c)
2025-09-26 16:21:21 -04:00
Brad King
b2c42d8207 libarchive: Update script to get 3.8.1 2025-09-26 16:18:46 -04:00
Brad King
edc4e31179 Merge topic 'tutorial-3.23'
058e7da541 Tutorial: Add redirect pages for removed steps
b2e3e3e30e Tutorial: Rewrite using conventions enabled by CMake 3.23

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11097
2025-09-18 08:46:04 -04:00
Vito Gamberini
058e7da541 Tutorial: Add redirect pages for removed steps 2025-09-17 11:57:34 -04:00
Brad King
9a53a28596 Merge topic 'improve-diagnostic'
ca072e3734 cmListFileLexer: Test for broken UTF-32-(BE|LE) BOM
3b8ddf3f45 cmListFileLexer: Handle null character in the grammar
7040406f86 cmListFileLexer: Do not require null-terminated input
0a26c08004 cm/string_view: Prevent find access past string end
63328f01f8 Utilities/Scripts: Drop CommandArgument lexer/parser generation step

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11173
2025-09-15 11:42:12 -04:00
Sergiu Deitsch
0a26c08004 cm/string_view: Prevent find access past string end 2025-09-11 15:10:57 +02:00
Brad King
63328f01f8 Utilities/Scripts: Drop CommandArgument lexer/parser generation step
This was missed in commit 292aaffb78 (Source: Remove unused
cmCommandArgument{Lexer,Parser}, 2024-12-09, v4.0.0-rc1~156^2~3).
2025-09-11 15:10:57 +02:00
Brad King
8145958e01 Merge branch 'upstream-curl' into update-curl
* upstream-curl:
  curl 2025-09-10 (11b99123)
2025-09-10 17:13:04 -04:00
Brad King
dbb84e50b1 curl: Update script to get curl 8.16.0 2025-09-10 17:07:14 -04:00
Brad King
9567647e9b Merge topic 'debugger-docs'
9d93853405 Help: Add documentation for debugging with GDB

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10980
2025-08-18 09:51:58 -04:00
Taylor Sasser
9d93853405 Help: Add documentation for debugging with GDB 2025-08-14 10:44:18 -04:00
Verney7
cfbf0480ff Sunway: Add sw_64 support
``sw_64`` is a new RISC ISA, which is a bit like RISC-V.
2025-08-07 09:42:11 -04:00
Martin Duffy
aaf433d99a Utilities/Sphinx: Add option to disable documentation from ALL 2025-08-06 09:30:39 -04:00
Brad King
119433409e Merge topic 'update-kwiml'
e936fa9036 Merge branch 'upstream-KWIML' into update-kwiml
1ec3395200 KWIML 2025-08-05 (2eae04db)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11024
2025-08-05 10:50:19 -04:00
Brad King
e936fa9036 Merge branch 'upstream-KWIML' into update-kwiml
# By KWIML Upstream
* upstream-KWIML:
  KWIML 2025-08-05 (2eae04db)
2025-08-05 09:36:40 -04:00
Matthew Woehlke
f2bdc2176f cmStack: New, mutable stack class
We would like to record additional information in the find-package
stack, but we don't have the information at the point a stack entry is
created. The most sane way to handle this appears to be making the stack
mutable, at least under specific circumstances. To facilitate this, we
need a mutable stack type.

Refactor cmConstStack into cmStack, with the ability to either allow or
forbid mutation of its data. Re-add cmConstStack as a type alias.

This doesn't yet allow mutating cmFindPackageStack, but it's a necessary
step toward being able to do so.
2025-07-30 10:11:36 -04:00
Brad King
8d8283642a curl: Set build options the way we need for CMake
Set options added by the update to curl 8.15.0.

In particular, drop code not needed after curl commit `08a3e8e19a`
(TLS: remove support for Secure Transport and BearSSL, 2025-06-09).
2025-07-21 13:45:45 -04:00
Brad King
c8f51c1d21 Merge branch 'upstream-curl' into update-curl
* upstream-curl:
  curl 2025-07-16 (cfbfb650)
2025-07-21 13:41:04 -04:00
Brad King
bf8360ddad curl: Update script to get curl 8.15.0 2025-07-21 13:32:40 -04:00
Brad King
41415dcdf5 ci: Do not linkcheck $project.sourceforge.net URLs
These URLs are expected to be stable.  Reduce load on SF infrastructure.
2025-07-10 10:34:19 -04:00
Brad King
bc07a21836 Merge topic 'post-rel-dev'
8071304f2e Configure CMake itself with policies through CMake 4.0
f7380d8c4a export: Increase maximum policy version in exported files to 4.0
94ff184a63 Add deprecation warnings for policies CMP0143 and below

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10925
2025-07-03 13:03:14 -04:00
Brad King
8071304f2e Configure CMake itself with policies through CMake 4.0 2025-07-02 09:42:26 -04:00
Brad King
759c6fd6a1 curl: Restore configuration checks on UNIX platforms
In commit 0112a49bfa (curl: Set build options the way we need for CMake,
2025-06-04, v4.1.0-rc1~54^2) we enabled `_CURL_PREFILL` on many UNIX
platforms.  However, curl's default only enables prefill on Windows.

Fixes: #27045
2025-07-02 09:28:25 -04:00
Brad King
0112a49bfa curl: Set build options the way we need for CMake
Set options added by the update to curl 8.14.1.
2025-06-05 09:00:36 -04:00