Commit Graph
15863 Commits
Author SHA1 Message Date
Brad King 4b366900d4 Merge topic 'hip-debian-multiarch'
e8381e42ef CMakeDetermineHIPCompiler: fix missing multiarch search path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11796
2026-03-10 10:02:00 -04:00
Talha Can Havadar e8381e42ef CMakeDetermineHIPCompiler: fix missing multiarch search path
In Debian/Ubuntu hip-lang-config.cmake is installed in multiarch path
and while searching for it we should have a proper fall back to systems
LIBRARY_ARCHITECTURE variable

MR in Debian: https://salsa.debian.org/cmake-team/cmake/-/merge_requests/15
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/2143705
2026-03-10 09:56:42 -04:00
Alex Turbov 1f939db3c4 CPack/RPM: Remove superfluous %clean section from generated spec file
According to [this] commit message in the `rpmlint` codebase,
a %clean section is not necessary since `rpm` 4.8.0 (2010)
and nowadays `rpmlint` at least issues a warning about it, and
(seems) in some distros it's even considered as an error.

[this]: https://github.com/rpm-software-management/rpmlint/commit/b1a8a422
2026-03-08 03:52:21 +04:00
Brad King 4bce86b20a Merge topic 'FindPNG-1.8'
20e8abca1a FindPNG: Add version 1.8

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11786
2026-03-07 09:13:11 -05:00
Brad King 20f59cc964 Merge topic 'FindPNG-1.8' into release-4.3
20e8abca1a FindPNG: Add version 1.8

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11786
2026-03-07 09:13:09 -05:00
Brad King 33477bdb74 Merge topic 'FindPython-mkl'
cf54a293ab FindPython: Fix finding NumPy with oneMKL 2026.0

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11781
2026-03-07 09:08:49 -05:00
nono303 20e8abca1a FindPNG: Add version 1.8
Fixes: #27676
2026-03-07 09:01:48 -05:00
Viraj Malia cf54a293ab FindPython: Fix finding NumPy with oneMKL 2026.0
Fix commit 516124ea23 (FindPython: fix regression of NumPy detection
with Intel MKL library, 2024-08-26, v3.30.3~4^2) to apply only on macOS.
It is not needed on other platforms, and oneMKL 2026.0 deprecates SSE4.2.
2026-03-06 14:14:21 -05:00
Brad King 116272e296 Merge topic 'use-triggers-instead-of-ldconfig-calls'
302a645d73 CPack/DEB: use `triggers` instead of legacy postXXX scripts for `ldconfig`
f461382d42 CPack/DEB: rename variable w/ result of `dpkg` find to match other vars
8a8bceda98 CPack/DEB: rename internal variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11779
2026-03-06 13:47:52 -05:00
Alex Turbov 302a645d73 CPack/DEB: use triggers instead of legacy postXXX scripts for ldconfig 2026-03-05 23:14:10 +04:00
Alex Turbov f461382d42 CPack/DEB: rename variable w/ result of dpkg find to match other vars 2026-03-05 22:07:58 +04:00
Alex Turbov 8a8bceda98 CPack/DEB: rename internal variable 2026-03-05 22:06:12 +04:00
Brad King a469312c39 Merge topic 'sqlite3_example_update'
a62b668802 FindSQLite3: Update example to use new SQLite3::SQLite3 target

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11775
2026-03-05 11:19:20 -05:00
Even Rouault a62b668802 FindSQLite3: Update example to use new SQLite3::SQLite3 target
This was missed in commit d4754c1a0c (FindSQLite3: Use package name as
namespace, 2025-12-08, v4.3.0-rc1~368^2).
2026-03-05 10:25:26 -05:00
Brad King 40d0b7d4ee Merge topic 'cuda-nvjitlink-static-deps'
ccf4ddab30 CUDAToolkit: CUDA::nvJitLink_static depends on nvptxcompiler_static

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11770
2026-03-05 09:55:50 -05:00
Robert Maynard ccf4ddab30 CUDAToolkit: CUDA::nvJitLink_static depends on nvptxcompiler_static
Fixes: #27666
2026-03-04 14:19:39 -05:00
Alex Turbov 430eb26511 CPack/DEB: modernize parent scope variables pass 2026-03-04 21:29:45 +04:00
Alex Turbov 165889e7d2 CPack/DEB: refactor some functions to check for errors+exit earlier
… and deindent the rest of the function body.
2026-03-04 21:29:45 +04:00
Alex Turbov ed04dda2a2 CPack/DEB: wrap too long lines 2026-03-04 21:29:45 +04:00
Alex Turbov 6978f9591c CPack/DEB: remove redundant quotes and variable expansions 2026-03-04 21:29:44 +04:00
Alex Turbov 4c889716fa CPack/DEB: modernize filesystem operations 2026-03-04 20:31:50 +04:00
Brad King 3f8ac3f758 Merge topic 'impr-cpack-rpm'
41500ba575 CPack/RPM: avoid `ls -la` process fork in tests
963a022782 CPack/RPM: wrap some too long lines
17a39084c2 CPack/RPM: some other simplifications
0966151c73 CPack/RPM: modernize file and path operations
16407d6934 CPack/RPM: escape regex in the modern way
9ed6106a27 CPack/RPM: remove redundant quotes and variable expansions
d7701b758b CPack/RPM: use list transform instead of string manipulations
fd321c02c5 CPack/RPM: `ls -la` execution + parse → `file(READ_SYMLINK)`
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11746
2026-03-04 09:25:54 -05:00
Brad King 55efa969a8 Merge topic 'doc-semicolon-list'
01e306dbde Help: Prefer spelling out 'semicolon-separated list'

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11762
2026-03-03 17:03:26 -05:00
Alex Turbov 963a022782 CPack/RPM: wrap some too long lines 2026-03-03 21:42:47 +04:00
Alex Turbov 17a39084c2 CPack/RPM: some other simplifications 2026-03-03 21:42:47 +04:00
Alex Turbov 0966151c73 CPack/RPM: modernize file and path operations 2026-03-03 21:42:47 +04:00
Alex Turbov 16407d6934 CPack/RPM: escape regex in the modern way 2026-03-03 21:42:46 +04:00
Alex Turbov 9ed6106a27 CPack/RPM: remove redundant quotes and variable expansions 2026-03-03 21:42:38 +04:00
Alex Turbov d7701b758b CPack/RPM: use list transform instead of string manipulations 2026-03-03 21:41:52 +04:00
Alex Turbov fd321c02c5 CPack/RPM: ls -la execution + parse → file(READ_SYMLINK) 2026-03-03 21:41:52 +04:00
Alex Turbov 8549727ff4 CPack/RPM: use the modern return(PROPAGATE…) 2026-03-03 21:41:52 +04:00
Alex Turbov 2fe2665541 CPack/RPM: execute stat to get permissions instead of ls -l
Ask `stat` to output only human-readable permissions and nothing else.
Secondly, simplify parsing algorithm. Instead of multiple regex matches
transform permissions into a list and split into groups.
2026-03-03 21:41:52 +04:00
Tyler Yankee 01e306dbde Help: Prefer spelling out 'semicolon-separated list'
Fixes: #27663
2026-03-03 09:27:44 -05:00
Brad King aff0829030 Merge topic 'import-std-windows-path'
aac53316e8 c++modules: Fix clang `*.modules.json` path on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11759
2026-03-03 09:21:16 -05:00
Michael Ferrari aac53316e8 c++modules: Fix clang *.modules.json path on Windows
Before it would result in us writing the unescaped backslashes to
`CMakeCXXCompiler.cmake` resulting in invalid escape characters causing
the configure to error out.
2026-03-02 10:23:22 -05:00
Brad King 041d48a570 Merge topic 'FindPython-sysconfig-paths-in-CMake-format'
a207af22e5 FindPython: Ensure sysconfig paths are in CMake format

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11747
2026-03-02 09:36:59 -05:00
Brad King 6fcbe8d450 Merge topic 'FindPython-sysconfig-paths-in-CMake-format' into release-4.3
a207af22e5 FindPython: Ensure sysconfig paths are in CMake format

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11747
2026-03-02 09:36:57 -05:00
Alex Turbov 6445447692 CPack/RPM: modernize foreach calls to use IN LISTS/ITEMS 2026-02-28 02:27:38 +04:00
Brad King eaecd6445b Merge topic 'import-std-experimental'
c1d58d3f3d Experimental: Restore `import std` gate
2e29354040 Experimental: Restore documentation link to CPS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !11745
2026-02-27 08:28:52 -05:00
Marc Chevrier a207af22e5 FindPython: Ensure sysconfig paths are in CMake format
Fixes: #27648
2026-02-27 14:07:04 +01:00
Brad King c1d58d3f3d Experimental: Restore import std gate
Several problems with this feature came up while testing 4.3.0-rc1.
These include both broken stdlib distributions and regressions in our
implementation of the feature since CMake 4.2.

Revert commit 70c1f0f43d (Experimental: Remove import std experimental
gate, 2026-02-04, v4.3.0-rc1~61^2) except for its incidental fixes.

Remove the 4.3 release notes related to `import std`.

Rotate the experimental gate's UUID.

Issue: #27426
Issue: #27597
Issue: #27626
Issue: #27635
2026-02-26 17:19:19 -05:00
Brad King e35eb114aa Merge topic 'windows-avoid-short-paths'
d314cad7f1 Ninja,Make,FASTBuild: Avoid unnecessary Windows short paths in placeholders
8099fe4436 CMakeParseImplicitLinkInfo: Fix detection of MSVC link.exe from quoted path
c211b5b7f3 Makefile: Pass includes response file using native path style
728b8b34c2 IAR: Fix `ichecks` invocation on Windows when not using short paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11717
2026-02-25 09:10:04 -05:00
Craig Scott 538c1b5d50 Merge topic 'googletest-listseparator'
e06169bdd0 GoogleTest: Add LIST_SEPARATOR for properties
dc26cdf9a9 GoogleTest: Fix unit test arg parsing

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11562
2026-02-24 16:29:00 -05:00
Brad King c6e9228711 Merge topic 'FindVulkan-arch'
5e1440302a FindVulkan: Add support for cross-compiling between Windows x64/ARM64
f9a09f76f3 FindVulkan: Drop support for 32-bit SDK on Windows
b40740f28a FindVulkan: Do not search bin directories for libraries
947adbba91 FindVulkan: Use ENV{VULKAN_SDK} only if it exists

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Francesco Giancane <fgiancan@qti.qualcomm.com>
Merge-request: !11718
2026-02-24 12:01:32 -05:00
Brad King 8099fe4436 CMakeParseImplicitLinkInfo: Fix detection of MSVC link.exe from quoted path
If the path to `link.exe` is not converted to a Windows short path,
then it may be quoted.

Issue: #16138
2026-02-24 10:53:44 -05:00
5e1440302a FindVulkan: Add support for cross-compiling between Windows x64/ARM64
The LunarG Vulkan SDK on Windows provides arch-specific library
directories for cross-compiling.  On X64 hosts it provides `-ARM64`
directories.  On ARM64 hosts it provides `-X64` directories.

It also provides arch-specific `bin` directories, but only for the
`.dll`s of the cross architecture.  We still want the plain `bin`
directory containing host-architecture executable tools.

Co-authored-by: Giancane, Francesco <fgiancan@qti.qualcomm.com>
Co-authored-by: Arnaud, Adrien <aarnaud@qti.qualcomm.com>
Tested-by: Giancane, Francesco <fgiancan@qti.qualcomm.com>
Tested-by: Arnaud, Adrien <aarnaud@qti.qualcomm.com>
2026-02-23 14:18:35 -05:00
Brad King f9a09f76f3 FindVulkan: Drop support for 32-bit SDK on Windows
This significantly simplifies the logic in preparation for ARM64
support.  It can be re-introduced later if necessary.
2026-02-23 14:18:35 -05:00
Brad King b40740f28a FindVulkan: Do not search bin directories for libraries
On Windows we need `.lib` import libraries, not `.dll` runtime binaries.
2026-02-23 14:18:35 -05:00
Brad King 947adbba91 FindVulkan: Use ENV{VULKAN_SDK} only if it exists 2026-02-23 14:18:35 -05:00
Máté Ferenc Nagy-Egri e06169bdd0 GoogleTest: Add LIST_SEPARATOR for properties 2026-02-23 18:04:51 +01:00