Commit Graph

70788 Commits

Author SHA1 Message Date
Ben Boeckel 03ed0ff57c cmLocalGenerator: factor out creating a "safe" file path 2025-05-22 17:02:52 +02:00
Ben Boeckel 5374edc8bf cmLocalGenerator: remove unnecessary .c_str() 2025-05-22 16:02:49 +02:00
Ben Boeckel 4abd800498 cmLocalUnixMakefileGenerator3: use faster rfind overload 2025-05-22 16:02:49 +02:00
Ben Boeckel 9847dbb222 Tests/InstallParallel: unset NINJA_STATUS
The install tests check that the output matches content including the
"status" portion of the output. Unset the variable to avoid leakage from
development environments.
2025-05-22 16:02:49 +02:00
Brad King 6be0c6d26a Merge topic 'astgrep-cmstrcat'
557c44b93e cmStrCat: use character literals where possible
23779057fd cmStrCat: combine neighboring arguments where possible
483d13daf4 ast-grep: add a rule to turn strings into characters
61743471d9 ast-grep: add a rule to find adjacent string literals in cmStrCat calls

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10790
2025-05-22 08:47:15 -04:00
Brad King 80282f57a9 Merge topic 'windows-export-no-operators'
607d9cf561 WINDOWS_EXPORT_ALL_SYMBOLS: Do not export C++ operators declared extern "C"
8f8b2e9429 bindexplib: Truncate short symbol names on first embedded null-terminator

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10791
2025-05-22 08:31:38 -04:00
Brad King 1934095e7b Merge topic 'patch-CheckVariableExists'
62c121163d CheckVariableExists: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10809
2025-05-22 08:28:46 -04:00
Brad King 863ba7c207 Merge topic 'patch-CheckTypeSize'
1afdd98ca3 CheckTypeSize: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10808
2025-05-22 08:26:54 -04:00
Brad King a792b23752 Merge topic 'patch-CheckLinkerFlag'
4b0bce12c8 CheckLinkerFlag: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10807
2025-05-22 08:24:15 -04:00
Brad King 0f0b3edfa6 Merge topic 'ci-intel-windows'
63c3e1fd3b ci: Shorten name of job testing Intel 2021.9 compilers on Windows
ebeee21983 ci: Update to IntelLLVM 2025.1 on Windows
3bce19c653 ci: Add script to repackage Intel oneAPI compilers

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10810
2025-05-22 08:18:33 -04:00
Kitware Robot 7ffdcb1036 CMake Nightly Date Stamp 2025-05-22 00:04:25 -04:00
Brad King 63c3e1fd3b ci: Shorten name of job testing Intel 2021.9 compilers on Windows
We do not need to test more than one patch level.
2025-05-21 16:47:03 -04:00
Brad King ebeee21983 ci: Update to IntelLLVM 2025.1 on Windows 2025-05-21 16:34:41 -04:00
Brad King 3bce19c653 ci: Add script to repackage Intel oneAPI compilers
Intel compilers for Windows are provided only via installer executables.
Add a script to repackage the parts we need for CMake's CI jobs.
2025-05-21 15:33:34 -04:00
Brad King fc9e9d1196 Merge topic 'automoc-specific-include-dirs'
39677f4cc6 AUTOMOC: Add option to specify moc include directories explicitly

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Osyotr <zhenchik35026@gmail.com>
Merge-request: !10640
2025-05-21 08:46:35 -04:00
Brad King 147aa22522 Merge topic 'resolve_hip_host_compiler_abs_path'
b2425fdffd HIP: Store CMAKE_HIP_HOST_COMPILER as an absolute path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10803
2025-05-21 08:44:22 -04:00
Brad King 76f341d374 Merge topic 'cuda-host-compiler-abs-path'
fdb8f0f588 CUDA: Store CMAKE_CUDA_HOST_COMPILER as an absolute path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10799
2025-05-21 08:35:49 -04:00
Brad King bb10fb3990 Merge topic 'patch-CheckSymbolExists'
58e8999c28 CheckSymbolExists, CheckCXXSymbolExists: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10804
2025-05-21 08:33:36 -04:00
Brad King e91b0fd0c3 Merge topic 'stdio-no-color'
6aa604ef10 StdIo: Honor NO_COLOR environment variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10805
2025-05-21 08:28:54 -04:00
Brad King d249540a7e Merge topic 'ci-intel-compiler'
351169af23 gitlab-ci: add job testing Intel oneAPI 2025.1.0 compilers on Linux
a56adbdd60 gitlab-ci: add job testing Intel oneAPI 2025.0.0 compilers on Linux

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10806
2025-05-21 08:26:36 -04:00
Brad King 6d13f60313 Merge branch 'release-4.0' 2025-05-21 08:25:14 -04:00
Brad King 835c556b91 Merge branch 'release-3.31' 2025-05-21 08:25:08 -04:00
Brad King 6cf75233b1 Merge branch 'release-3.31' into release-4.0 2025-05-21 08:24:51 -04:00
Brad King 6110426ca7 Merge branch 'release-4.0' 2025-05-21 08:24:05 -04:00
Brad King 3955e9b614 Merge topic 'ci-msvc-14.44'
e37a40442a ci: Update Windows builds to MSVC 14.44 toolset
c955d5c31f ci: Tie Intel 2024.1 jobs on Windows to MSVC 14.43 toolset

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10802
2025-05-21 08:24:05 -04:00
Brad King 81c7ed367c Merge topic 'ci-msvc-14.44' into release-4.0
e37a40442a ci: Update Windows builds to MSVC 14.44 toolset
c955d5c31f ci: Tie Intel 2024.1 jobs on Windows to MSVC 14.43 toolset

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10802
2025-05-21 08:24:03 -04:00
Brad King 7ffb1364ea Merge topic 'ci-msvc-14.44' into release-3.31
e37a40442a ci: Update Windows builds to MSVC 14.44 toolset
c955d5c31f ci: Tie Intel 2024.1 jobs on Windows to MSVC 14.43 toolset

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10802
2025-05-21 08:21:01 -04:00
Tolga Mizrak 607d9cf561 WINDOWS_EXPORT_ALL_SYMBOLS: Do not export C++ operators declared extern "C"
The pattern `extern "C" { inline bool operator==(...) {} }` appears
in at least one Windows SDK header, `winnt.h`.  Translation units that
instantiate the inline symbol produce object files with a symbol named
just `==`.  Avoid exporting such symbols because the linker will not
recognize them.

Fixes: #24999
2025-05-21 08:07:54 -04:00
Kitware Robot 4762f99954 CMake Nightly Date Stamp 2025-05-21 00:04:36 -04:00
Peter Kokot 62c121163d CheckVariableExists: Update documentation
- Added intro code block showing how to include this module.
- Added examples section.
- Added missing CMAKE_REQUIRED_LINK_DIRECTORIES variable (this module
  can also use it as of CMake 3.31).
- Added a note that this is a linker only check and it doesn't check
  whether the variable is also declared in headers, unlike
  check_symbol_exists().
- Added "See Also" section.
2025-05-21 00:41:47 +02:00
Peter Kokot 1afdd98ca3 CheckTypeSize: Update documentation
- Added intro code block showing how to include this module.
- Used "command" instead of "macro".
- Described the command arguments in a list separately.
- Refactored some descriptions.
- Added a rubric title for variables that affect the check.
2025-05-20 23:35:18 +02:00
Peter Kokot 4b0bce12c8 CheckLinkerFlag: Update documentation
- Added intro code block showing how to include this module.
- Added a list of variables that can affect the check. The
  CMAKE_REQUIRED_LINK_OPTIONS is skipped as it is currently internally
  overridden by the module's check command.
- Added examples section.
- Described command arguments as a list.
- Added included section describing the `LINKER:` (and `SHELL:`) prefix.
- Added link to the module in target_link_options() docs.
2025-05-20 22:12:16 +02:00
Tolga Mizrak 8f8b2e9429 bindexplib: Truncate short symbol names on first embedded null-terminator 2025-05-20 14:19:49 -04:00
Robert Maynard b2425fdffd HIP: Store CMAKE_HIP_HOST_COMPILER as an absolute path 2025-05-20 12:41:39 -04:00
Brad King 6aa604ef10 StdIo: Honor NO_COLOR environment variable
This convention is documented by https://bixense.com/clicolors/

Closes: #26458
2025-05-20 11:57:29 -04:00
Brad King 351169af23 gitlab-ci: add job testing Intel oneAPI 2025.1.0 compilers on Linux
There is no corresponding Intel classic C/C++ compiler version.
2025-05-20 11:17:07 -04:00
Brad King a56adbdd60 gitlab-ci: add job testing Intel oneAPI 2025.0.0 compilers on Linux
There is no corresponding Intel classic C/C++ compiler version.
2025-05-20 11:16:28 -04:00
Robert Maynard fdb8f0f588 CUDA: Store CMAKE_CUDA_HOST_COMPILER as an absolute path
Isolate its selection from later changes to `PATH`.

Fixes: #26942
Co-authored-by: Brad King <brad.king@kitware.com>
2025-05-20 11:07:38 -04:00
Brad King 27f375d514 Merge branch 'release-4.0' 2025-05-20 10:47:04 -04:00
Brad King 32d33956a0 Merge branch 'release-3.31' 2025-05-20 10:46:56 -04:00
Brad King 149b5830b6 Merge branch 'release-3.31' into release-4.0 2025-05-20 10:46:45 -04:00
Brad King dd8403d36d Merge branch 'release-4.0' 2025-05-20 10:45:32 -04:00
Brad King 2d7a0605f2 Merge topic 'Python3.14-support'
41a4a32135 FindPython: Avoid implicit link library on Windows
811f00f9ad FindPython: rely on ABIFLAGS on Windows for ABI profile

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10800
2025-05-20 10:45:32 -04:00
Brad King 7092720db5 Merge topic 'Python3.14-support' into release-4.0
41a4a32135 FindPython: Avoid implicit link library on Windows
811f00f9ad FindPython: rely on ABIFLAGS on Windows for ABI profile

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10800
2025-05-20 10:45:29 -04:00
Brad King 42e46a7013 Merge topic 'Python3.14-support' into release-3.31
41a4a32135 FindPython: Avoid implicit link library on Windows
811f00f9ad FindPython: rely on ABIFLAGS on Windows for ABI profile

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10800
2025-05-20 10:28:24 -04:00
Brad King e37a40442a ci: Update Windows builds to MSVC 14.44 toolset 2025-05-20 10:24:48 -04:00
Brad King c955d5c31f ci: Tie Intel 2024.1 jobs on Windows to MSVC 14.43 toolset
Intel 2024.1 tools do not work with the MSVC 14.44 standard library.
2025-05-20 10:23:30 -04:00
Marc Chevrier 41a4a32135 FindPython: Avoid implicit link library on Windows
Starting with version 3.14, on Windows, by specifying macro Py_NO_LINK_LIB,
the python library is no longer implicitly specified at the link step.

Fixes: #26756
2025-05-20 09:16:14 -04:00
Marc Chevrier 811f00f9ad FindPython: rely on ABIFLAGS on Windows for ABI profile
Starting with Python 3.14, the config_var ABIFLAGS is now also available
on Windows.
2025-05-20 09:16:14 -04:00
Brad King edb80c068b Merge topic 'find-package-event-providers'
3d60b0ba1d configure-log: fill in dependency provider information

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10785
2025-05-20 09:13:36 -04:00