Commit Graph

72655 Commits

Author SHA1 Message Date
Brad King 8b7bf6cc67 Merge topic 'fix/typos-1.38.1'
8de02a14c8 ci(pre-commit): version bump `typos` hook plus fix found typos

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11344
2025-10-24 17:15:00 -04:00
Brad King dc347ab3b2 Merge branch 'release-4.2' 2025-10-24 17:13:22 -04:00
Brad King 80cd036ceb Merge topic 'instrumentation-fix-link'
2678028eab Help/instrumentation: Fix link to CMake Content File

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11346
2025-10-24 17:13:22 -04:00
Brad King 5a34759eeb Merge topic 'instrumentation-fix-link' into release-4.2
2678028eab Help/instrumentation: Fix link to CMake Content File

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11346
2025-10-24 17:13:20 -04:00
Brad King c0fb4675d8 Merge branch 'release-4.2' 2025-10-24 17:11:33 -04:00
Brad King b15718de08 Merge topic 'cps-use-license'
94b6e36b6b find_package: Respect CPS license

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11343
2025-10-24 17:11:32 -04:00
Brad King cd28c759ff Merge topic 'cps-use-license' into release-4.2
94b6e36b6b find_package: Respect CPS license

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11343
2025-10-24 17:11:30 -04:00
Brad King c39b263a91 Merge branch 'release-4.2' 2025-10-24 17:02:26 -04:00
Brad King f96cb60ba3 Merge topic 'fix-project-license-doc'
6500ea2776 Help: Add missing gate for project(SPDX_LICENSE)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11342
2025-10-24 17:02:26 -04:00
Brad King 4b823eafa3 Merge topic 'fix-project-license-doc' into release-4.2
6500ea2776 Help: Add missing gate for project(SPDX_LICENSE)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11342
2025-10-24 17:02:24 -04:00
Brad King e970605cdf Merge branch 'release-4.2' 2025-10-24 17:00:07 -04:00
Brad King d4fa081f78 Merge topic 'FASTBuild-optimize-try_compile'
e42881422f FASTBuild: optimize try_compile builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11335
2025-10-24 17:00:07 -04:00
Brad King e624610dda Merge topic 'FASTBuild-optimize-try_compile' into release-4.2
e42881422f FASTBuild: optimize try_compile builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11335
2025-10-24 17:00:05 -04:00
Kitware Robot ae1aa9a8f3 CMake Nightly Date Stamp 2025-10-24 00:05:14 -04:00
Tyler Yankee 2678028eab Help/instrumentation: Fix link to CMake Content File
Fix typo from commit 97adbc91fa (instrumentation: Move target data into
content files, 2025-09-25, v4.2.0-rc1~49^2).
2025-10-23 15:30:09 -04:00
Matthew Woehlke 94b6e36b6b find_package: Respect CPS license
Modify CPS import to set the `SPDX_LICENSE` on imported targets using
the specified package `license`, if present (and if none of the other
mechanisms for setting a license apply).
2025-10-23 14:30:30 -04:00
Alex Turbov 8de02a14c8 ci(pre-commit): version bump typos hook plus fix found typos 2025-10-23 21:14:25 +04:00
Matthew Woehlke 6500ea2776 Help: Add missing gate for project(SPDX_LICENSE)
The `SPDX_LICENSE` option of the `project` command requires that the
`CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_INFO` gate is enabled, but this was
not documented. Add the missing documentation.

Fixes: #27328
2025-10-23 11:36:16 -04:00
Brad King c8527dc4d8 Merge topic 'fileapi-relative-under-root'
41be8cb44a FileAPI: Fix paths relative to root directory
3f7f2368d6 Avoid extra / in path to CMakeLists.txt in root directory

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11314
2025-10-23 11:19:43 -04:00
Brad King 11f7b998f7 Merge branch 'release-4.2' 2025-10-23 11:17:56 -04:00
Brad King 162b1d5910 Merge topic 'fbuild_disable_cuda_support'
7953214454 FASTBuild: Explicitly disallow CUDA language since it is not implemented

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11334
2025-10-23 11:17:55 -04:00
Brad King b27be83f4a Merge topic 'fbuild_disable_cuda_support' into release-4.2
7953214454 FASTBuild: Explicitly disallow CUDA language since it is not implemented

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11334
2025-10-23 11:17:54 -04:00
Kitware Robot a1a8fbd0de CMake Nightly Date Stamp 2025-10-23 00:04:50 -04:00
Eduard Voronkin e42881422f FASTBuild: optimize try_compile builds
The generator does a lot of tricks in order to make the "rebuild-bff"
target up-to-date immediately after the generation. We can skip all of
those during "TryCompile" runs, which should reduce configure time.
2025-10-22 17:32:48 -07:00
Brad King 4338c5ef03 Merge branch 'release-4.2' 2025-10-22 19:12:43 -04:00
Brad King 151905f44a Merge branch 'release-4.1' 2025-10-22 19:12:35 -04:00
Brad King cfa2e44668 Merge branch 'release-4.0' 2025-10-22 19:12:28 -04:00
Brad King 50ea94ad97 Merge branch 'release-4.1' into release-4.2 2025-10-22 19:12:13 -04:00
Brad King 68721a1726 Merge branch 'release-4.0' into release-4.1 2025-10-22 19:11:44 -04:00
Brad King 461bb555e7 Merge branch 'release-4.2' 2025-10-22 19:10:53 -04:00
Brad King ab4d558987 Merge topic 'backport-4.0-cross-compile-macos'
61d0bdf6b7 macOS: Avoid relying on sw_vers when cross-compiling from another OS
d9d65ab54f macOS: Remove outdated condition for CMAKE_OSX_DEPLOYMENT_TARGET

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11340
2025-10-22 19:10:52 -04:00
Brad King 008a5a4223 Merge topic 'backport-4.0-cross-compile-macos' into release-4.2
61d0bdf6b7 macOS: Avoid relying on sw_vers when cross-compiling from another OS
d9d65ab54f macOS: Remove outdated condition for CMAKE_OSX_DEPLOYMENT_TARGET

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11340
2025-10-22 19:10:49 -04:00
Brad King efe6ffc2f5 Merge topic 'backport-4.0-cross-compile-macos' into release-4.1
61d0bdf6b7 macOS: Avoid relying on sw_vers when cross-compiling from another OS
d9d65ab54f macOS: Remove outdated condition for CMAKE_OSX_DEPLOYMENT_TARGET

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11340
2025-10-22 19:09:36 -04:00
Brad King 9a2ee83045 Merge topic 'backport-4.0-cross-compile-macos' into release-4.0
61d0bdf6b7 macOS: Avoid relying on sw_vers when cross-compiling from another OS
d9d65ab54f macOS: Remove outdated condition for CMAKE_OSX_DEPLOYMENT_TARGET

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11340
2025-10-22 19:08:46 -04:00
Brad King 61d0bdf6b7 macOS: Avoid relying on sw_vers when cross-compiling from another OS
We have a few code paths needed only to support builds hosted on
macOS 10.4.  Update the conditions to work when cross-compiling
to macOS from another platform.

This backports commit eb8facd396 (macOS: Avoid relying on sw_vers
when cross-compiling from another OS, 2025-04-28, v4.1.0-rc1~260^2)
to CMake 4.0.

Fixes: #26814
2025-10-22 17:26:36 -04:00
Brad King d9d65ab54f macOS: Remove outdated condition for CMAKE_OSX_DEPLOYMENT_TARGET
Revert commit 2853326e7a (BUG: Only set CMAKE_OSX_DEPLOYMENT_TARGET on
Mac OSX 10.4 or later, 2009-01-27, v2.8.0~1169).  AFAIK no one is using
macOS versions older than 10.4 anymore.

This backports commit 476b2a386f (macOS: Remove outdated condition
for CMAKE_OSX_DEPLOYMENT_TARGET, 2025-04-28, v4.1.0-rc1~260^2~1)
to CMake 4.0.
2025-10-22 17:26:31 -04:00
Brad King fe1c7ead2d Merge branch 'release-4.2' 2025-10-22 16:37:16 -04:00
Brad King b79c1a9f1a Merge topic 'Help-OPTIMIZE_DEPENDENCIES-fixes'
02805028bd HELP/OPTIMIZE_DEPENDENCIES: fix reST markup
c40f3b984b Help/OPTIMIZE_DEPENDENCIES: fix parity of which files are considered

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Craig Scott <craig.scott@crascit.com>
Merge-request: !11336
2025-10-22 16:37:16 -04:00
Brad King 974775d544 Merge topic 'Help-OPTIMIZE_DEPENDENCIES-fixes' into release-4.2
02805028bd HELP/OPTIMIZE_DEPENDENCIES: fix reST markup
c40f3b984b Help/OPTIMIZE_DEPENDENCIES: fix parity of which files are considered

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Craig Scott <craig.scott@crascit.com>
Merge-request: !11336
2025-10-22 16:37:13 -04:00
Eduard Voronkin 7953214454 FASTBuild: Explicitly disallow CUDA language since it is not implemented
Issue: #27318
2025-10-22 10:28:40 -04:00
Ben Boeckel 02805028bd HELP/OPTIMIZE_DEPENDENCIES: fix reST markup 2025-10-22 09:47:08 -04:00
Ben Boeckel c40f3b984b Help/OPTIMIZE_DEPENDENCIES: fix parity of which files are considered 2025-10-22 09:46:40 -04:00
Richard 41be8cb44a FileAPI: Fix paths relative to root directory
We normalize directory paths to not end in `/`.  However, a root
directory path always ends in `/`.  Avoid removing the first character
after it.

Fixes: #27308
2025-10-22 09:25:39 -04:00
Richard 3f7f2368d6 Avoid extra / in path to CMakeLists.txt in root directory 2025-10-22 09:22:23 -04:00
Brad King cadbf8fe40 Merge topic 'patch-remove-definitions'
6374f70915 remove_definitions: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !11328
2025-10-22 07:34:33 -04:00
Brad King 0bd618b40e Merge branch 'release-4.2' 2025-10-22 07:29:14 -04:00
Brad King 9801855b63 Merge topic 'gtest-json-discovery-empty'
f67efb64ab GoogleTest: Restore support for empty discovered test list

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11326
2025-10-22 07:29:14 -04:00
Brad King e00b84ec13 Merge topic 'gtest-json-discovery-empty' into release-4.2
f67efb64ab GoogleTest: Restore support for empty discovered test list

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11326
2025-10-22 07:29:11 -04:00
Brad King ada1c33507 Merge branch 'release-4.2' 2025-10-22 07:25:38 -04:00
Brad King 57c4fafcf5 Merge topic 'fix-cmake_determine_linker_id-error-handling'
69e2f3f8ea Linker: Tolerate CMAKE_EXECUTE_PROCESS_COMMAND_ERROR_IS_FATAL set to ANY
576e63f28d Compilers: Use -print-sysroot output only with successful exit code

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11313
2025-10-22 07:25:38 -04:00