Commit Graph

15230 Commits

Author SHA1 Message Date
Brad King
2bd60d2d2f Merge topic 'swift-module-nested-structure'
1711e86d6c Swift: Generate nested swift modules in build dir
b36175abdb Swift: Detect module triple from compiler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10664
2025-05-23 08:23:28 -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
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
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
Robert Maynard
b2425fdffd HIP: Store CMAKE_HIP_HOST_COMPILER as an absolute path 2025-05-20 12:41:39 -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
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
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
7c7460130a Merge topic 'patch-CheckStructHasMember'
c9956e777c CheckStructHasMember: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10798
2025-05-20 09:06:42 -04:00
Brad King
01901478a8 Merge topic 'patch-CTestCoverageCollectGCOV'
45db842032 CTestCoverageCollectGCOV: Extend documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10797
2025-05-20 09:04:35 -04:00
Brad King
4882400b87 Merge topic 'patch-CheckPrototypeDefinition'
20f4ef1f1b CheckPrototypeDefinition: Add intro code block

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10794
2025-05-20 09:02:29 -04:00
Brad King
e711538aca Merge topic 'patch-CheckIPOSupported'
294b30b27e CheckIPOSupported: Extend documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10796
2025-05-20 09:00:16 -04:00
Brad King
c0b66322dc Merge topic 'patch-CMakeBackwardCompatibilityCXX-intro-code-blocks'
26dd965037 CMakeBackwardCompatibilityCXX: Add intro code blocks

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10795
2025-05-20 08:54:58 -04:00
Peter Kokot
58e8999c28 CheckSymbolExists, CheckCXXSymbolExists: Update documentation
- Added intro code blocks showing how to include these modules.
- Added section titles.
- Used "command" instead of "macro".
- Indented command-related descriptions according to the command
  section indentation level.
- Added the "See Also" sections.
- Synced descriptions between the modules.
2025-05-20 01:23:02 +02:00
Brad King
85cd454c91 Merge topic 'patch-CheckLanguage'
3f102a2ae3 CheckLanguage: Add intro code block

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10788
2025-05-19 09:21:59 -04:00
Brad King
86aa467bca Merge topic 'patch-SelectLibraryConfigurations'
151666f523 SelectLibraryConfigurations: Add intro code block

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10787
2025-05-19 09:00:18 -04:00
Brad King
ecc4c3bdd9 Merge topic 'patch-CMakePrintHelpers'
3dcc4db1ae CMakePrintHelpers: Extend documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10786
2025-05-19 08:46:34 -04:00
Peter Kokot
c9956e777c CheckStructHasMember: Update documentation
- Added intro code block showing how to include this module.
- Used "command" instead of "macro".
- Reworded descriptions a bit.
- Extended examples section showing how to check struct members in C and
  C++. Added additional example showing how to use
  CMAKE_REQUIRED_DEFINITIONS variable.
2025-05-19 02:39:54 +02:00
Peter Kokot
45db842032 CTestCoverageCollectGCOV: Extend documentation
- Added intro code block showing how to include this module.
- Used "command" instead of "function".
- Reworded descriptions a bit.
- Synced arguments names and style.
2025-05-19 00:29:04 +02:00
Peter Kokot
20f4ef1f1b CheckPrototypeDefinition: Add intro code block
- Added intro code block showing how to include this module.
- Used word "command" instead of "function".
- Added a rubric title for variables that affect the check.
- Synced module docs.
2025-05-19 00:22:32 +02:00
Peter Kokot
294b30b27e CheckIPOSupported: Extend documentation
- Added intro code block showing how to include this module.
- Added brief description about IPO and LTO and how it is enabled in
  CMake.
- Used "command" instead of "function".
- Reworded few descriptions.
- Synced indentation for items related to the command section.
- Added "See Also" sections to related target properties and variables.
2025-05-18 23:56:31 +02:00
Peter Kokot
26dd965037 CMakeBackwardCompatibilityCXX: Add intro code blocks
This is mainly a sync with other CMake modules for consistency:
- Added intro code blocks showing how to include the modules.
- Adjusted examples sections.
- Added "See Also" sections.
2025-05-18 19:30:42 +02:00
Brad King
ee92f1eef0 Merge topic 'patch-ProcessorCount'
7660e97e99 ProcessorCount: Add intro code block with include()

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10781
2025-05-15 10:38:52 -04:00
Brad King
aaefff1461 Merge topic 'fix-warn-of-not-relocatable'
4244f704b4 CPack/RPM: Fix warn of not relocatable path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10776
2025-05-15 10:37:23 -04:00
Brad King
bb616fb576 Merge topic 'patch-check-variables'
7cfc111df3 Help: Update CMAKE_REQUIRED_* variables for checks

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10782
2025-05-15 10:23:56 -04:00
Brad King
e4ad9548cb Merge topic 'patch-UseEcos'
56d55c88cc UseEcos: Extend documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10780
2025-05-15 10:18:11 -04:00
Brad King
210758669e Merge topic 'FindRuby-cleanup'
c972050ff5 FindRuby: Improve logic populating MSVC runtime alternatives
cc4f7a73bd FindRuby: Improve order of library name alternatives
e99cb9e35a FindRuby: The library name on Windows uses major.minor.0 format
d703443809 FindRuby: Improve formatting of list of possible library names
120192cde7 FindRuby: Fix typos in variable names
13da6bea6e FindRuby: Generalize name of runtime candidates variable
ae1ce9048a FindRuby: Name private version variables more consistently

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10741
2025-05-15 10:01:38 -04:00
Peter Kokot
3f102a2ae3 CheckLanguage: Add intro code block
- Added intro code block showing how to include this module.
- Used "command" instead of "macro".
2025-05-15 07:25:00 +02:00
Peter Kokot
151666f523 SelectLibraryConfigurations: Add intro code block
- Added intro code block showing how to include this module.
- Used "command" instead of "macro".
2025-05-15 07:06:15 +02:00
Peter Kokot
3dcc4db1ae CMakePrintHelpers: Extend documentation
- Added intro code block showing how to include this module.
- Used "commands" instead of "functions".
- Reworded descriptions a bit.
2025-05-15 06:57:04 +02:00
Evan Wilde
b36175abdb Swift: Detect module triple from compiler
On Swift versions later than 5.2, the compiler is able to specify target
info, including the module triple among other properties about the
underlying platform. Grab the triple and save it in the compiler info.
2025-05-14 14:54:29 -07:00
Brad King
0883fac39a Merge topic 'clang-libstdcpp-3.31' into release-3.31
802f261d62 experimental/CXXModules: recycle the UUID
c88f3ea1e4 Clang/CXXImportStd: support `-stdlib=libstdc++`
ba5c9703b1 Experimental: recycle the `import std` UUID
9cad48c6cb gcc: support `import std`
acbada3df6 Tests/RunCMake: handle C++26 support where needed

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10778
2025-05-14 15:31:47 -04:00
Ben Boeckel
c88f3ea1e4 Clang/CXXImportStd: support -stdlib=libstdc++
Fedora 42 ships `clang` with `libstdc++` as the default. Detect and
support `import std;` in this configuration.
2025-05-14 20:15:26 +02:00
Ben Boeckel
9cad48c6cb gcc: support import std
(cherry picked from commit a980dab9b1 (gcc: support `import std`,
2024-11-21))
2025-05-14 20:14:44 +02:00
Peter Kokot
56d55c88cc UseEcos: Extend documentation
- Added intro code block showing how to load this module.
- Synced descriptions.
- Used "commands" instead of "macros".
- Added example description.
2025-05-14 18:44:38 +02:00
Peter Kokot
7cfc111df3 Help: Update CMAKE_REQUIRED_* variables for checks
This moves indentation of the included RST files to the initial level
and instead indents the include directives where used.

Additionally:
- Instead of ";-list", "semicolon-separated list" is used.
- Instead of mentioning `<resultVar>` argument, a more general
  description is used.
- Few minor tweaks added.
2025-05-14 18:37:05 +02:00
Peter Kokot
7660e97e99 ProcessorCount: Add intro code block with include()
- Added intro code block showing how to include this module in CMake.
- Used "command" instead of "function".
- Synced descriptions a bit.
2025-05-14 18:23:42 +02:00
Brad King
b226b9e21c Merge topic 'patch-FindEnvModules'
22ff5620b3 FindEnvModules: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10773
2025-05-14 08:57:46 -04:00
Brad King
ef726f2e79 Merge topic 'patch-FindHg'
50769f3f10 FindHg: Sync module documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10770
2025-05-14 08:52:57 -04:00
Brad King
4d2c274ab6 Merge topic 'patch-FindSubversion'
95de9682eb FindSubversion: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10771
2025-05-14 08:48:27 -04:00
cfis
c972050ff5 FindRuby: Improve logic populating MSVC runtime alternatives
Ruby (mswin) links to vcruntime140, but future proof by using MSVC
toolset version.
2025-05-14 08:44:48 -04:00
cfis
cc4f7a73bd FindRuby: Improve order of library name alternatives
Prefer long versions over short versions.
Prefer dotted versions over no-dot versions.
2025-05-14 08:42:22 -04:00
Brad King
0cde9c8d69 Merge topic 'cuda-13.0-prep'
b62f3257f2 CUDA/Clang: Update nvcc default architectures with CUDA 13 deprecations

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !10671
2025-05-14 08:35:24 -04:00