Commit Graph

15254 Commits

Author SHA1 Message Date
Brad King
39da33ae81 CMakeDetermineVSServicePack: Add policy to remove this module
It has been documented as deprecated since CMake 3.0.
2025-05-28 09:47:06 -04:00
Brad King
bc9785a12b Merge topic 'linker-launcher'
d176a8c5ce Fortran: Add support for [CMAKE_]Fortran_LINKER_LAUNCHER

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10831
2025-05-28 09:17:17 -04:00
Brad King
a09fee08a8 Merge topic 'patch-AndroidTestUtilities'
16a05e4e7a AndroidTestUtilities: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10819
2025-05-28 09:12:34 -04:00
Brad King
73c5598f0a Merge topic 'patch-BundleUtilities'
1d52a6867a BundleUtilities: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10823
2025-05-28 09:10:40 -04:00
Brad King
70ff8fc481 Merge topic 'patch-DeployQt4'
04c57542e7 DeployQt4: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10825
2025-05-28 09:07:51 -04:00
Brad King
d8feab4db2 Merge topic 'patch-CMakeDetermineVSServicePack'
10ad343e73 CMakeDetermineVSServicePack: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10821
2025-05-28 09:05:53 -04:00
Brad King
2e286b3cef Merge topic 'patch-CMakeExpandImportedTargets'
0723c36ffc CMakeExpandImportedTargets: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10822
2025-05-28 09:03:28 -04:00
Brad King
479f4f5e9a Merge topic 'patch-CheckIncludeFile'
b2e7736d81 CheckIncludeFile*: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10826
2025-05-28 08:55:44 -04:00
Brad King
8ae87de5f3 Merge topic 'patch-check-source-compiles'
e6f9ebbbe1 Check{,C,CXX,OBJC,OBJCXX,Fortran}SourceCompiles: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10824
2025-05-28 08:51:50 -04:00
Brad King
4be72a4c0e Merge topic 'patch-check-source-runs'
c5980ad868 Check*SourceRuns: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10820
2025-05-28 08:49:05 -04:00
Maximilian Sander
d176a8c5ce Fortran: Add support for [CMAKE_]Fortran_LINKER_LAUNCHER
`CMAKE_<LANG>_LINKER_LAUNCHER` and `<LANG>_LINKER_LAUNCHER` are
already support for C, CXX, OBJC, and OBJCXX.  Add Fortran.

Closes: #26951
2025-05-27 11:00:54 -04:00
Peter Kokot
1d52a6867a BundleUtilities: Sync documentation
- Added intro code block showing how to include this module.
- Used word "commands" instead of "functions".
- Updated and synced commands descriptions.
- Added a very basic examples section for consistency.
2025-05-27 16:22:56 +02:00
Peter Kokot
b2e7736d81 CheckIncludeFile*: Sync documentation
- Added intro code blocks showing how to include these modules.
- Used "command" instead of "macro".
- Mentioned policy CMP0075.
- Added additional example to CheckIncludeFile showing how to use
  CMAKE_REQUIRED_* variable.
2025-05-27 00:16:57 +02:00
Peter Kokot
04c57542e7 DeployQt4: Sync documentation
- Added note that this module is for Qt version 4 and newer version
  should be used.
- Added intro code block showing how to include this module.
- Used word "commands" instead of "functions".
- Added descriptions to commands.
- Used lowercase names of commands.
2025-05-26 02:55:17 +02:00
Peter Kokot
e6f9ebbbe1 Check{,C,CXX,OBJC,OBJCXX,Fortran}SourceCompiles: Update documentation
Changes:

- Added intro code blocks showing how to include these modules.
- Added examples sections.
- Used "command" instead of "macro".
- Commands sections added to have a clearer overview of the modules at
  first encounter.
- Reworded commands arguments a bit.
- Added a rubric title for variables that affect the checks.
- CheckFortranSourceCompiles: Added CMake version when SRC_EXT option
  was introduced.
- Listed CMAKE_TRY_COMPILE_TARGET_TYPE variable in the rubric together
  with CMAKE_REQUIRED_* variables and added an include RST file for it.
- Used lowercase style for check_fortran_source_compiles().
2025-05-26 02:49:32 +02:00
Peter Kokot
0723c36ffc CMakeExpandImportedTargets: Sync documentation
- Added intro code block showing how to include this module.
- Used word "command" instead of "function".
2025-05-26 00:51:46 +02:00
Peter Kokot
10ad343e73 CMakeDetermineVSServicePack: Sync documentation
- Added intro code block showing how to include this module.
- Used "command" instead of "function".
2025-05-26 00:40:01 +02:00
Peter Kokot
c5980ad868 Check*SourceRuns: Update documentation
This updates the following modules:
- CheckCSourceRuns
- CheckCXXSourceRuns
- CheckFortranSourceRuns
- CheckOBJCSourceRuns
- CheckOBJCXXSourceRuns
- CheckSourceRuns

Changes:
- Added intro code blocks showing how to include these modules.
- Used word "command" instead of "macro".
- Added "Commands" sections to have a clearer overview of the modules at
  first encounter.
- Reworded commands descriptions and arguments a bit.
- Added a rubric title for variables that affect the checks.
- Added "Examples" sections.
- Added "See Also" sections.
- Added few more examples in the CheckSourceRuns module to show how to
  use this module with different languages, `CMAKE_REQUIRED_*` variables,
  and mentioned bracket argument syntax a bit.
2025-05-26 00:27:52 +02:00
Brad King
b0eb74cba5 try_compile: Restore propagation of CMAKE_<LANG>_LINK_PIE_SUPPORTED
Refactoring in commit c4e890946a (try_compile: consistently add language
properties, 2020-06-15, v3.19.0-rc1~633^2) accidentally dropped the
`_LINK` part of the name.  It also miscounted array indexes in a way
that happened to propagate `CMAKE_<LANG>_LINK_NO_PIE_SUPPORTED` whether
or not it is needed for the CMP0083 NEW behavior.  Simplify the code and
fix the variable name.

Fixes: #26948
2025-05-24 07:10:02 -04:00
Peter Kokot
16a05e4e7a AndroidTestUtilities: Update documentation
- Refactored module introduction.
- Used "commands" instead of "functions".
- Updated module documentation and synced it with other similar utility
  modules.
- Synced command arguments with implementation (DEVICE_OBJECT_STORE and
  DEVICE_TEST_DIR are required arguments).
- Added separate examples section.
2025-05-24 01:26:03 +02:00
Brad King
ccec689b66 Merge topic 'patch-CheckLibraryExists'
157c97306f CheckLibraryExists: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10814
2025-05-23 08:27:27 -04:00
Brad King
323b24073c Merge topic 'patch-CheckFunctionExists'
08ae40fabf CheckFunctionExists, CheckFortranFunctionExists: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10811
2025-05-23 08:25:06 -04:00
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
Peter Kokot
157c97306f CheckLibraryExists: Update documentation
- Added intro code block showing how to include this module.
- Used "command" instead of "macro".
- Added rubric title for variables that affect the check command.
- Refactored note about using CheckSymbolExists as a more robust check.
2025-05-22 19:16:48 +02: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
Peter Kokot
08ae40fabf CheckFunctionExists, CheckFortranFunctionExists: Update documentation
Changes:
- Added intro code blocks showing how to include these modules.
- Used "command" instead of "macro".
- Added some basic examples sections.
- Added a rubric title for variables that affect the checks.
- Synced and reworded descriptions.
- Added "See Also" sections.
2025-05-22 00:07:42 +02: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