Commit Graph
16080 Commits
Author SHA1 Message Date
Brad King 7e4d73a178 Merge topic 'fix-opengl-legacy'
69956c6f63 FindOpenGL: Fix OpenGL and GLX result variables with legacy GL

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12205
2026-06-23 09:53:18 -04:00
Carlo Bramini 69956c6f63 FindOpenGL: Fix OpenGL and GLX result variables with legacy GL
In commit 32a5f11e50 (FindOpenGL: respect legacy preference for OpenGL
and GLX libraries, 2025-10-31, v4.3.0-rc1~544^2) the result variables
were spelled incorrectly.  Also re-order logic to preserve the CMP0072
warning text naming the GLVND libraries.

Fixes: #27299
2026-06-22 20:05:04 -04:00
Brad King dfd1cf8d87 Merge topic 'import-std-refactor'
42d2d63235 c++modules: Copy props from BMI consumers more correctly
6d3e9d8220 c++modules: single import std target

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !12193
2026-06-22 18:21:02 -04:00
Brad King a64d3c5522 Merge topic 'FindRuby-vendor-dirs'
c4ee728699 FindRuby: Fix vendor directory discovery

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12189
2026-06-19 09:56:18 -04:00
Vito Gamberini 6d3e9d8220 c++modules: single import std target 2026-06-18 15:20:54 -04:00
Brad King c4ee728699 FindRuby: Fix vendor directory discovery
The `ruby -r vendor-specific` module no longer exists.
Use `ruby -r rbconfig` instead.

This patch has been carried by openSUSE's cmake package:

* https://build.opensuse.org/projects/openSUSE:Factory/packages/cmake/files/cmake-fix-ruby-test.patch?rev=274
* https://build.opensuse.org/package/rdiff/openSUSE:Factory/cmake?rev=106
* https://build.opensuse.org/package/rdiff/openSUSE:Factory/cmake?rev=57
* https://build.opensuse.org/package/rdiff/openSUSE:Factory/cmake?rev=56

Fixes: #27888
2026-06-18 10:50:52 -04:00
Brad King c154e36fac Merge topic 'ExternalProject-env-quoting'
036c331b97 ExternalProject: Fix ENVIRONMENT_MODIFICATION with spaces in values

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12178
2026-06-17 08:45:33 -04:00
Brad King 25eb4244db Merge topic 'ExternalProject-env-quoting' into release-4.4
036c331b97 ExternalProject: Fix ENVIRONMENT_MODIFICATION with spaces in values

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12178
2026-06-17 08:45:31 -04:00
Brad King 25aa28f880 Merge topic 'ExternalProject-env-quoting' into release-4.3
036c331b97 ExternalProject: Fix ENVIRONMENT_MODIFICATION with spaces in values

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12178
2026-06-17 08:45:02 -04:00
Brad King 03585467bd Merge topic 'clang-scan-deps-no-toolchain-prefix'
5537b3d60e Clang-FindBinUtils: find unprefixed `clang-scan-deps` binaries as well

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12165
2026-06-16 10:18:16 -04:00
Brad King 8bbfb3611e Merge topic 'clang-scan-deps-no-toolchain-prefix' into release-4.4
5537b3d60e Clang-FindBinUtils: find unprefixed `clang-scan-deps` binaries as well

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12165
2026-06-16 10:18:14 -04:00
Brad King 1c88bce7c9 Merge topic 'FindDoxygen-error-quiet'
8e6e392962 FindDoxygen: Avoid leaking child process stderr

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12169
2026-06-16 10:15:09 -04:00
Brad King 7c6bde239c Merge topic 'FindDoxygen-error-quiet' into release-4.4
8e6e392962 FindDoxygen: Avoid leaking child process stderr

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12169
2026-06-16 10:15:07 -04:00
Brad King 0034223c93 Merge topic 'GoogleTest-discovery-clutter'
b5f555f687 GoogleTest: Avoid cluttering custom working directory during discovery

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12155
2026-06-16 10:12:43 -04:00
Brad King b87d1c5a50 Merge topic 'GoogleTest-discovery-clutter' into release-4.4
b5f555f687 GoogleTest: Avoid cluttering custom working directory during discovery

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12155
2026-06-16 10:12:41 -04:00
Brad King 1e9350dea3 Merge topic 'ExternalData-debug-message'
271e17d7ec ExternalData: Remove redundant debug message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12171
2026-06-16 09:57:36 -04:00
Brad King cfc5c161b3 Merge topic 'ExternalData-debug-message' into release-4.4
271e17d7ec ExternalData: Remove redundant debug message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12171
2026-06-16 09:57:34 -04:00
Brad King b7cc1599dd Merge topic 'ExternalData-debug-message' into release-4.3
271e17d7ec ExternalData: Remove redundant debug message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12171
2026-06-16 09:56:40 -04:00
Brad King 036c331b97 ExternalProject: Fix ENVIRONMENT_MODIFICATION with spaces in values
Fix commit e301cbffcc (ExternalProject: Set environment variables,
2025-04-09, v4.2.0-rc1~480^2) to quote arguments for ``EVAL CODE``,
used since commit cbf2daeed0 (ExternalProject: Preserve empty string
arguments, 2020-05-15, v3.18.0-rc1~99^2~1).

Fixes: #27876
2026-06-15 14:46:24 -04:00
Jakob Ronestjärna 271e17d7ec ExternalData: Remove redundant debug message 2026-06-15 11:25:03 -04:00
Ottmar Zittlau b5f555f687 GoogleTest: Avoid cluttering custom working directory during discovery
Since commit 1cdceae8e3 (GoogleTest: Parse discovered test list from
JSON output if supported, 2025-05-02, v4.2.0-rc1~533^2~2) we've placed
the discovery JSON files in the working directory provided by the user.
Place them in the current build tree folder instead.

Fixes: #27840
2026-06-15 11:14:59 -04:00
James Miro 8e6e392962 FindDoxygen: Avoid leaking child process stderr
Fixes: #27869
2026-06-15 10:59:34 -04:00
Ben Boeckel 5537b3d60e Clang-FindBinUtils: find unprefixed clang-scan-deps binaries as well
Apparently Gentoo (and upstream builds) do not add prefixes to the
associated tools. Alas, such things exist, so we should support them.

Fixes: #27858
2026-06-11 16:10:03 -04:00
Brad King 491387f096 Merge topic 'cuda-add-std23-nvcc-support'
d01c9a429b CUDA: Add support for cuda_std_23 for nvcc 13.3+

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12162
2026-06-11 10:25:33 -04:00
Brad King cd7328bd29 Merge topic 'cuda-add-std23-nvcc-support' into release-4.4
d01c9a429b CUDA: Add support for cuda_std_23 for nvcc 13.3+

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12162
2026-06-11 10:25:32 -04:00
Brad King f5eda86794 Merge topic 'cuda-std20-msvc-ver-fix'
a0762d49b2 NVCC: Fix minimum MSVC version needed for cuda_std_20

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12161
2026-06-11 10:22:35 -04:00
Arha Gatram d01c9a429b CUDA: Add support for cuda_std_23 for nvcc 13.3+
CUDA 13.3 has been released with support for `-std=c++23`.
2026-06-10 13:27:03 -04:00
Arha Gatram a0762d49b2 NVCC: Fix minimum MSVC version needed for cuda_std_20
Fix the version check from commit 0aeeb8160c (CUDA: Add support for
cuda_std_20 for nvcc 12.0+, 2022-12-09, v3.25.2~21^2).  Align the
minimum version of MSVC for supporting C++20 through `nvcc` with the
version present in `MSVC-CXX.cmake` .
2026-06-10 13:16:34 -04:00
Brad King 1f38756c94 Merge topic 'FindPython-windows-arm64'
363cba1ae6 FindPython: Restore support for Windows ARM64

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12158
2026-06-10 09:53:03 -04:00
Brad King 1c142b916a Merge topic 'FindPython-windows-arm64' into release-4.4
363cba1ae6 FindPython: Restore support for Windows ARM64

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12158
2026-06-10 09:53:01 -04:00
Brad King 1b9e2eb20c Merge topic 'ibm-flang'
4969297469 IBMFlang: Rename compiler id from IBMLLVMFlang

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12159
2026-06-10 09:49:07 -04:00
Brad King bb3244dd08 Merge topic 'ibm-flang' into release-4.4
4969297469 IBMFlang: Rename compiler id from IBMLLVMFlang

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12159
2026-06-10 09:49:06 -04:00
Brad King 4e87834b96 Merge topic 'FindPython-windows-arm64' into release-4.3
363cba1ae6 FindPython: Restore support for Windows ARM64

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12158
2026-06-09 13:13:52 -04:00
Brad King 04c87b945c Merge topic 'UseSWIG-use-SOURCE_PROPERTY-genex'
25798c15b8 UseSWIG: use $<SOURCE_PROPERTY> genex

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12145
2026-06-09 08:51:57 -04:00
Brad King d7a3f2d02e Merge topic 'GoogleTest-value-parameters'
e5b5aaa737 Merge branch 'backport-GoogleTest-value-parameters'
75634620ed GoogleTest: Fix regression with value parameters in discovered tests
c51be9dfe9 GoogleTest: Fix regression with value parameters in discovered tests

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12156
2026-06-09 08:48:42 -04:00
Brad King 43d5bd5530 Merge topic 'backport-GoogleTest-value-parameters' into release-4.3
c51be9dfe9 GoogleTest: Fix regression with value parameters in discovered tests

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12156
2026-06-09 08:47:32 -04:00
Julien Marrec 363cba1ae6 FindPython: Restore support for Windows ARM64
Fix a typo from commit 51e1459947 (FindPython: enhance ARCHITECTURE
detection, 2026-02-20, v4.3.0-rc2~21^2).

Fixes: #27864
2026-06-09 08:21:56 -04:00
Brad King 4969297469 IBMFlang: Rename compiler id from IBMLLVMFlang
Rename the compiler id from commit ee76398d23 (IBMLLVMFlang: Add support
for this compiler, 2026-05-25) to mention only the direct vendor, IBM.

Issue: #27863
2026-06-09 08:14:23 -04:00
Ottmar Zittlau 75634620ed GoogleTest: Fix regression with value parameters in discovered tests
Google Test returns parameter values for parametrized tests in two ways:

* As part of the test name - if a name_generator has been provided in
  the test this will be the generated string, otherwise gtest will just
  number all tests

* In a separate field of the json (or the text output) - this seems to
  be a byte representation of the input data if the input data cannot be
  converted to a string.

If the cmake parameter `NO_PRETTY_VALUES` to `gtest_discover_tests` has
not been set, the auto-generated test index - i.e. if no `name_generator
has been specified - is supposed to be replaced by the value parameter
from category 2 above. However, since commit 1cdceae8e3 (GoogleTest:
Parse discovered test list from JSON output if supported, 2025-05-02,
v4.2.0-rc1~533^2~2), the logic has been broken, in that the test suffix
is always replaced even though a name_generator has been configured.

Fix this by checking if the last part of the test name is an integer and
only then replace it.

Fixes: #27846
2026-06-08 11:14:53 -04:00
Ottmar Zittlau c51be9dfe9 GoogleTest: Fix regression with value parameters in discovered tests
Google Test returns parameter values for parametrized tests in two ways:

* As part of the test name - if a name_generator has been provided in
  the test this will be the generated string, otherwise gtest will just
  number all tests

* In a separate field of the json (or the text output) - this seems to
  be a byte representation of the input data if the input data cannot be
  converted to a string.

If the cmake parameter `NO_PRETTY_VALUES` to `gtest_discover_tests` has
not been set, the auto-generated test index - i.e. if no `name_generator
has been specified - is supposed to be replaced by the value parameter
from category 2 above. However, since commit 1cdceae8e3 (GoogleTest:
Parse discovered test list from JSON output if supported, 2025-05-02,
v4.2.0-rc1~533^2~2), the logic has been broken, in that the test suffix
is always replaced even though a name_generator has been configured.

Fix this by checking if the last part of the test name is an integer and
only then replace it.

Fixes: #27846
2026-06-08 10:56:01 -04:00
Marc Chevrier 25798c15b8 UseSWIG: use $<SOURCE_PROPERTY> genex
To enable a more flexible uasage of source properties (like setting
these properties after `swig_add_library()` call), rely now on
$<SOURCE_PROPERTY> generator expression.
2026-06-05 19:06:11 +02:00
Brad King 3dca3b048d export: Increase maximum policy version in exported files to 4.3
The files generated by `install(EXPORT)`, `export()`, and
`install_jar_exports()` commands are known to work with policies
as of CMake 4.3, so enable them in sufficiently new CMake versions.
2026-06-05 11:34:36 -04:00
Brad King 635b42c3ff Merge topic 'ibm-flang'
ee76398d23 IBMLLVMFlang: Add support for this compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12138
2026-06-04 10:09:27 -04:00
Brad King b11c54bb0c Merge topic 'discover-tests-googletest'
a324c2bb58 GoogleTest: Base on builtin command discover_tests
6b6e9fbc32 GoogleTest: Move test list parsing to separate file
1da072eacb discover_tests: Add TEST_LIST to CTest command

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11815
2026-06-04 09:54:33 -04:00
Brad King 6e995093d9 Merge topic 'fix-build-tree-prefix-leak'
fd660330e0 find_*: Avoid searching prefix derived from CMake's own source tree

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12122
2026-06-04 09:51:29 -04:00
Kelvin Li ee76398d23 IBMLLVMFlang: Add support for this compiler
Add support for the `ibm-flang` compiler tool, a variant of LLVMFlang.

Closes: #27863
2026-06-03 18:35:46 -04:00
Daksh Mamodiya fd660330e0 find_*: Avoid searching prefix derived from CMake's own source tree
When `cmake` is running from its own build tree, `CMAKE_ROOT` is in
the source tree and should not be used to derive a search prefix.

Fixes: #27853
2026-06-03 10:11:21 -04:00
Daniel Pfeifer a324c2bb58 GoogleTest: Base on builtin command discover_tests 2026-06-02 21:19:28 +02:00
Daniel Pfeifer 6b6e9fbc32 GoogleTest: Move test list parsing to separate file 2026-06-02 21:05:05 +02:00
Brad King bd870ef98f Merge topic 'swift-sizeof-void-p'
a82e3e3aaf Swift: Verify setting sizeof_void_p
8682afd971 Swift: Extract pointer size from Swift compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12125
2026-06-02 09:27:23 -04:00