Commit Graph

71411 Commits

Author SHA1 Message Date
Brad King 95fb2486f8 Merge branch 'release-4.0' into release-4.1 2026-01-08 08:14:07 -05:00
Brad King efed27c9ff Merge topic 'ci-xcode-26.2' into release-4.1
bc18ef4400 ci: update macOS jobs to use Xcode 26.2

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11576
2026-01-08 08:13:57 -05:00
Brad King 297d8f2708 Merge branch 'release-3.31' into release-4.0 2026-01-08 08:13:51 -05:00
Brad King 2e00e773f6 Merge topic 'ci-xcode-26.2' into release-4.0
bc18ef4400 ci: update macOS jobs to use Xcode 26.2

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11576
2026-01-08 08:13:42 -05:00
Brad King 92d75438dd Merge topic 'ci-xcode-26.2' into release-3.31
bc18ef4400 ci: update macOS jobs to use Xcode 26.2

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11576
2026-01-08 08:13:10 -05:00
Brad King bc18ef4400 ci: update macOS jobs to use Xcode 26.2 2026-01-07 13:51:59 -05:00
Brad King b87059c03c Merge branch 'release-4.0' into release-4.1 2026-01-07 09:33:04 -05:00
Brad King 1c031c8a1d Merge topic 'ci-sccache-port-from-runner' into release-4.1
cb865362ed gitlab-ci: get the sccache server port from the runner

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11560
2026-01-07 09:32:51 -05:00
Brad King 4ae62b6709 Merge branch 'release-3.31' into release-4.0 2026-01-07 09:32:37 -05:00
Brad King 61b443f398 Merge topic 'ci-sccache-port-from-runner' into release-4.0
cb865362ed gitlab-ci: get the sccache server port from the runner

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11560
2026-01-07 09:32:26 -05:00
Brad King bd9d4d5a8c Merge topic 'ci-sccache-port-from-runner' into release-3.31
cb865362ed gitlab-ci: get the sccache server port from the runner

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11560
2026-01-07 09:31:33 -05:00
Ben Boeckel cb865362ed gitlab-ci: get the sccache server port from the runner
Our CI setup has per-project runner setups, so they are now providing
the port configuration. The main goal is to have Rosetta caches separate
from the native caches on macOS, but removing this removes a bit of
coupling to Kitware's CI setup.
2025-12-29 16:34:10 -05:00
Brad King b713b7299c Merge branch 'release-4.0' into release-4.1 2025-12-20 09:28:59 -05:00
Brad King 8039d1ffba Merge topic 'backport-sarif-path-encoding' into release-4.1
2eef2baf93 cmake: Fix SARIF diagnostics output path encoding on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11538
2025-12-20 09:28:36 -05:00
Brad King 4c0c3d6f9f Merge topic 'backport-sarif-path-encoding' into release-4.0
2eef2baf93 cmake: Fix SARIF diagnostics output path encoding on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11538
2025-12-20 09:28:06 -05:00
Brad King 2eef2baf93 cmake: Fix SARIF diagnostics output path encoding on Windows
Avoid using `filesystem::path` to hold the output path.  It performs
encoding conversions that violate our internal UTF-8 encoding.

Fixes: #27471
Issue: #27472
2025-12-19 14:33:42 -05:00
Brad King 54810df231 Merge topic 'doc-4.1-vs-flags' into release-4.1
ea357236f4 Help: Add 4.1 release note about VS link flag suppression

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11525
2025-12-18 10:34:30 -05:00
Brad King ff98528f42 Merge topic 'backport-vs-link-defaults' into release-4.1
91b9db90e5 VS: Restore subsystem link flag for DLLs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11524
2025-12-18 10:29:21 -05:00
Brad King 91b9db90e5 VS: Restore subsystem link flag for DLLs
In commit 99d09ec45a (VS: Suppress MSBuild default link flags not
specified by project or user, 2025-06-17, v4.1.0-rc1~6^2) we removed our
default `-subsystem:...` link flag from `SHARED` and `MODULE` libraries
in Visual Studio generators for consistency with command-line generators.
However, unlike other flag suppressions for #27004, this change did not
just suppress MSBuild defaults, but actually changed flags the generator
was previously adding itself.

For the linker subsystem flag, consistency across generators should
perhaps achieved by adding the flag in other generators instead of
removing it from Visual Studio generators.  Restore the previous
behavior pending further investigation.

Issue: #27466
Fixes: #27464
2025-12-17 17:41:17 -05:00
Brad King ea357236f4 Help: Add 4.1 release note about VS link flag suppression
Document link flags suppressed by commit 99d09ec45a (VS: Suppress
MSBuild default link flags not specified by project or user, 2025-06-17,
v4.1.0-rc1~6^2).  Leave out `-subsystem` because that's being reverted
by another commit.

Issue: #27004
Issue: #27464
2025-12-17 16:58:30 -05:00
Brad King 9c0cb30f06 Merge topic 'backport-linux32-system-libarchive' into release-4.1
cea7f7fc32 Linux: Do not force 64-bit `time_t` on 32-bit archs with system libarchive
16cc3e25d4 Utilities: Select bundled or external dependencies very early

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11505
2025-12-12 09:41:35 -05:00
Brad King 03f2b2b9c9 Merge topic 'stdio-ctrl-c' into release-4.1
c55dfbf656 StdIo: Restore compilation on 32-bit MinGW

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11503
2025-12-12 09:40:56 -05:00
Brad King cea7f7fc32 Linux: Do not force 64-bit time_t on 32-bit archs with system libarchive
Commit 1b9e8f833f (Linux: Compile with 64-bit time_t even on 32-bit
architectures, 2025-06-26, v4.1.0-rc2~16^2) broke running with a
system-provided libarchive that uses a 32-bit `time_t`.  If CMake
is configured to build with a system libarchive, assume the user
has taken responsibility to match `time_t` sizes.

Fixes: #27448
2025-12-11 14:40:48 -05:00
Brad King 16cc3e25d4 Utilities: Select bundled or external dependencies very early 2025-12-11 14:40:16 -05:00
Brad King c55dfbf656 StdIo: Restore compilation on 32-bit MinGW
In commit e419429616 (StdIo: Restore Windows Console I/O modes on
Ctrl-C, 2025-11-26, v4.1.4~4^2) we relied on the compiler to generate a
lambda with an `operator()` for each calling convention.  MSVC does
this, but the GNU compiler for MinGW does not seem to.
2025-12-11 10:52:18 -05:00
Brad King 6a5e9f299f Merge topic 'fix-nvpl' into release-4.1
1bf46814c4 FindBLAS: Make find_package(nvpl) quiet

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11498
2025-12-11 09:40:00 -05:00
Brad King c32e21fe52 Merge topic 'export-ignore-ast-grep' into release-4.1
93f5111ba7 gitattributes: Do not export ast-grep infrastructure in source archives

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11499
2025-12-11 09:38:59 -05:00
Brad King 93f5111ba7 gitattributes: Do not export ast-grep infrastructure in source archives
Exclude infrastructure added by commit 61743471d9 (ast-grep: add a rule
to find adjacent string literals in cmStrCat calls, 2025-05-15,
v4.1.0-rc1~122^2~3).
2025-12-10 14:24:48 -05:00
Vito Gamberini 1bf46814c4 FindBLAS: Make find_package(nvpl) quiet
Fixes: #27451
2025-12-10 11:33:12 -05:00
Brad King 892fad3d23 CMake 4.1.4 v4.1.4 2025-12-08 11:30:41 -05:00
Brad King c267e6d104 Merge topic 'doc-4.1-vs-flags' into release-4.1
e2646b9926 Help: Add 4.1 release note about VS flag suppression

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11489
2025-12-08 11:00:12 -05:00
Brad King e2646b9926 Help: Add 4.1 release note about VS flag suppression
Document flags suppressed by commit 7db3dbddb2 (VS: Suppress MSBuild
default flags not specified by project or user, 2025-06-02,
v4.1.0-rc1~69^2).
2025-12-08 10:28:32 -05:00
Brad King a9c997edc0 Merge topic 'vs2019-v142' into release-4.1
8c332a3c7f VS: Restore support for VS 2019 with toolset v142 versions before 14.29

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11480
2025-12-08 09:57:50 -05:00
Brad King 8c332a3c7f VS: Restore support for VS 2019 with toolset v142 versions before 14.29
Since commit 7db3dbddb2 (VS: Suppress MSBuild default flags not
specified by project or user, 2025-06-02, v4.1.0-rc1~69^2) we suppress
the `-Zc:inline` default flag when the project/user does not specify it.
That triggers an apparent bug in VS 2019 with v142 toolset versions
before 14.29 in which MSBuild fails when both `-Zc:inline` and `-nologo`
are suppressed.  This happens when `CMAKE_VERBOSE_MAKEFILE` is enabled,
such as in `try_compile` projects like our builtin compiler inspection.

Since `-nologo` is incidental, avoid suppressing it if `-Zc:inline` is
also suppressed.  Limit this workaround to relevant toolset versions.

Fixes: #27439
2025-12-05 12:47:53 -05:00
Brad King 121234b968 Merge topic 'fix-cps-export-definitions' into release-4.1
b2ca9fba8b CPS: Fix exporting definitions in CMake 4.1

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11469
2025-12-01 13:59:36 -05:00
Brad King b43eb123e4 Merge topic 'stdio-ctrl-c' into release-4.1
e419429616 StdIo: Restore Windows Console I/O modes on Ctrl-C

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11457
2025-12-01 12:27:59 -05:00
Matthew Woehlke b2ca9fba8b CPS: Fix exporting definitions in CMake 4.1
Backport commit 37b15eda3b (CPS: Fix exporting definitions, 2025-11-21)
to CMake 4.1.

Export compile definitions to CPS using the correct attribute name.

Fixes: #27403
2025-12-01 12:15:51 -05:00
Brad King e419429616 StdIo: Restore Windows Console I/O modes on Ctrl-C
Extend commit fb3e7825f3 (StdIo: Restore Windows Console I/O modes on
exit, 2025-05-23, v4.1.0-rc1~114^2) to cover termination by Ctrl-C.

Fixes: #27427
2025-11-26 15:18:03 -05:00
Brad King 0848aac41c Merge branch 'release-4.0' into release-4.1 2025-11-25 11:12:29 -05:00
Brad King d330f70a53 Merge topic 'flang-j-as-moddir' into release-4.1
db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11443
2025-11-25 11:12:17 -05:00
Brad King 22e1d0e929 Merge branch 'release-3.31' into release-4.0 2025-11-25 11:12:05 -05:00
Brad King 8d8239c752 Merge topic 'flang-j-as-moddir' into release-4.0
db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11443
2025-11-25 11:11:48 -05:00
Brad King 377d390546 Merge topic 'flang-j-as-moddir' into release-3.31
db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11443
2025-11-25 11:10:22 -05:00
Brad King 812acd7ee6 Merge topic 'cxx-atomic' into release-4.1
37171d9db0 Source: Improve detection of Linux architectures requiring explicit libatomic

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11441
2025-11-25 10:59:45 -05:00
Tarun Prabhu db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir
In flang, both -J and -module-dir support both joined and separate values. For
the -J option, these are of the form `-J<value>` and `-J <value>` respectively.
Once https://github.com/llvm/llvm-project/pull/168748 is committed, -module-dir
will only work with a separate value. Setting CMAKE_Fortran_MODDIR_FLAG to -J
ensures that both joined and separate styles will continue to work after that
change is made. As far as behavior is concerned, both -J and -module-dir are
aliases.
2025-11-24 14:25:21 -05:00
Brad King 37171d9db0 Source: Improve detection of Linux architectures requiring explicit libatomic
Extend commit fa3c4b6dbf (Source: Link libatomic when needed on any
Linux architecture, 2023-08-24, v3.27.5~9^2) to decide based on the
architecture targeted by the compiler, known since CMake 4.1.
Use `CMAKE_SYSTEM_PROCESSOR` only as a fallback for older versions.

Fixes: #27406
2025-11-24 11:29:15 -05:00
Brad King 5961f5f3bc CMake 4.1.3 v4.1.3 2025-11-18 09:55:48 -05:00
Brad King 89b555f1b5 Merge branch 'release-4.0' into release-4.1 2025-11-18 09:43:32 -05:00
Brad King 5517be2bf1 CMake 4.0.5 v4.0.5 2025-11-18 09:16:12 -05:00
Brad King b6f13dabc4 Merge branch 'release-4.0' into release-4.1 2025-11-18 09:04:03 -05:00