Commit Graph

14784 Commits

Author SHA1 Message Date
Brad King
601277ed4e Merge topic 'patch-TestForANSIForScope'
8f25772351 TestForANSIForScope: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10453
2025-03-12 09:23:36 -04:00
Brad King
8747ff63cd Merge topic 'patch-TestForANSIStreamHeaders'
8c2cd72a0f TestForANSIStreamHeaders: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10456
2025-03-12 09:21:39 -04:00
Peter Kokot
8f25772351 TestForANSIForScope: Update documentation
This describes the module in more details to make upgrading code easier.
2025-03-11 16:02:22 +01:00
Peter Kokot
8c2cd72a0f TestForANSIStreamHeaders: Update documentation
This describes the module in more details to make upgrading code easier.
2025-03-11 16:00:15 +01:00
Peter Kokot
ef0119f57f TestForSTDNamespace: Update documentation
This describes the module in more details to make upgrading code easier.
2025-03-11 15:57:13 +01:00
Brad King
d4f84dae0e Merge topic 'patch-FindPackageMessage'
ee398e8946 FindPackageMessage: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10441
2025-03-11 09:57:35 -04:00
Brad King
6fe00b4b44 Merge topic 'patch-CMakePrintSystemInformation'
457bf223e6 CMakePrintSystemInformation: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10445
2025-03-11 09:55:09 -04:00
Brad King
cde675429f Merge topic 'patch-CheckPIESupported'
eb18960b60 CheckPIESupported: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10447
2025-03-11 09:53:43 -04:00
Brad King
d8242c2d46 Merge topic 'patch-CheckIPOSupported'
a04fd272c2 CheckIPOSupported: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10443
2025-03-11 09:50:25 -04:00
Brad King
4492908f74 Merge topic 'FindHDF5-h5hl'
a869b79c59 FindHDF5: Prefer h5hl* compilers for HDF5_FIND_HL

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10450
2025-03-11 09:46:06 -04:00
Brad King
6d260533e7 Merge topic 'link-information-with-decorated-diagnostics'
ee066d2271 LinkerId: Suppress decorated diagnostics during linker inspection

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Nils Gladitz <nilsgladitz@gmail.com>
Merge-request: !10442
2025-03-11 09:40:28 -04:00
Atri Bhattacharya
a869b79c59 FindHDF5: Prefer h5hl* compilers for HDF5_FIND_HL
Prefer `h5hlcc`, `h5hlc++`, and `h5hlfc` compilers when HDF5's HL libraries
are requested. These include the `-lhdf_hl` in the command line, whereas
the non-hl compilers (like `h5cc`) do not. Using the latter, therefore,
leads to cmake complaining about not finding the `HDF5_HL` libraries even
though they are present in the same location as the `hdf5` library itself.

Fixes: #23261
2025-03-10 11:53:01 -04:00
Marc Chevrier
ee066d2271 LinkerId: Suppress decorated diagnostics during linker inspection
Fixes: #26747
2025-03-10 10:36:27 -04:00
Brad King
7c55e2a698 Merge topic 'patch-UsewxWidgets'
c827016b10 UsewxWidgets, Use_wxWindows: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10437
2025-03-10 10:25:23 -04:00
Brad King
cfb59a273a Merge topic 'patch-CheckIncludeFile'
d3b7f0d272 CheckInclude{FileCXX,File,Files}: Add examples

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10435
2025-03-10 10:24:23 -04:00
Brad King
8a8db36758 Merge topic 'patch-FindSQLite3'
dc20787020 FindSQLite3: Replace REQUIRED_VARS order

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10436
2025-03-10 10:22:41 -04:00
Peter Kokot
eb18960b60 CheckPIESupported: Update documentation
- The module purpose explanation extended to clarify what this module
  enables and what gets configured when not using this module.
- Examples extended with include() and some minor adjustments
- Policy CMP0083 info described with a note directive
2025-03-10 01:14:43 +01:00
Peter Kokot
ee398e8946 FindPackageMessage: Update documentation
- Documentation updated.
- This module is internally already used by the
  FindPackageHandleStandardArgs module and can conflict when used again
  in the find module due to the same <PackageName> used, or when QUIET
  option is used. For this reason, the example is changed and explained
  at the bottom to use find_package_handle_standard_args().
- Lower-case style function used in FindPackageHandleStandardArgs.
2025-03-08 22:50:11 +01:00
Peter Kokot
457bf223e6 CMakePrintSystemInformation: Update documentation 2025-03-08 22:27:42 +01:00
Peter Kokot
a04fd272c2 CheckIPOSupported: Update documentation
- Added some minor descriptions and include() to examples
- The second example extended also with option() as it is very common
  usage in CMake to enable IPO conditionally
2025-03-08 22:05:05 +01:00
Peter Kokot
c827016b10 UsewxWidgets, Use_wxWindows: Update documentation
UsewxWidgets:
- Module description updated according to current code
- Mention of the link_libraries() command removed as it was always
  commented out and never used in this specific module file
- Added example, how to use IMPORTED target of the found package instead
  of this module - preparing it for deprecation in the future

Use_wxWindows:
- Mention of the UsewxWidgets module removed
- The STATUS message changed to DEPRECATION and message simplified
2025-03-07 18:43:29 +01:00
Peter Kokot
dc20787020 FindSQLite3: Replace REQUIRED_VARS order
This displays the library name in the result message instead of the
include directory. In cases where the include directory is /usr/include
is a bit less informative compared to a library name. For example,
/usr/lib/x86_64-linux-gnu/libsqlite3.so
2025-03-06 23:30:08 +01:00
Peter Kokot
d3b7f0d272 CheckInclude{FileCXX,File,Files}: Add examples
This adds some examples to modules for checking headers.
2025-03-06 23:10:28 +01:00
Peter Kokot
a76b533562 CTestCoverageCollectGCOV: Update documentation
- Added missing arguments to the function signature
- Synced some minor formatting/RST nits
- Added simplified example
2025-03-06 18:26:54 +01:00
Brad King
c2d9b5944a Merge topic 'FindGettext-remove-deprecated-msgmerge-option'
27daf26916 FindGettext: remove use of deprecated -s option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10422
2025-03-06 08:00:38 -05:00
Brad King
3e2fd68f55 Merge topic 'patch-CTestUseLaunchers'
be9011c275 CTestUseLaunchers: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10428
2025-03-06 07:59:30 -05:00
Brad King
3daa01884e Merge topic 'patch-DeployQt4'
5f270bfb26 DeployQt4: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10423
2025-03-06 07:58:26 -05:00
Brad King
de7168c097 Merge topic 'remove-kfreebsd'
99c8abed55 kFreeBSD: Remove support for obsolete platform

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10410
2025-03-06 07:57:22 -05:00
Peter Kokot
be9011c275 CTestUseLaunchers: Update documentation 2025-03-05 22:03:19 +01:00
Roger Leigh
99c8abed55 kFreeBSD: Remove support for obsolete platform
kFreeBSD is no longer maintained or supported and was never an
officially-supported release architecture for Debian.

Closes: #26742
2025-03-05 11:57:49 -05:00
Marc Chevrier
5c1521c54d FindPython: enforce artifacts consistency when cross-compiling
Fixes: #26696
2025-03-05 17:11:56 +01:00
Brad King
8295a4ad32 Merge topic 'cuda-cross-targets'
781a67bf5e CUDA/Clang: Determine cross-compiling target from CMAKE_CUDA_COMPILER_TARGET
40eeca77c3 CUDA/Clang: Sync target directory table with FindCUDAToolkit
05efcdd464 FindCUDA: Sync target directory table with FindCUDAToolkit

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10421
2025-03-05 08:27:23 -05:00
Brad King
2a63964b73 Merge topic 'typos-1.30.0'
d168cd397f pre-commit: version bump `typos` hook to 1.30 + add some more ignore IDs
4d99e2b702 Help(FindJasper): Fix the spelling typo in the variable documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10417
2025-03-05 08:26:14 -05:00
Peter Kokot
5f270bfb26 DeployQt4: Update documentation
- Module functions listed using the usual RST docs blocks
- The `FIXUP_QT4_BUNDLE` typo fixed to `fixup_qt4_executable`
- Typos and some minor readability improvements added
- Mention of usage requirements (CMake 2.6, BundleUtilities) at the
  beginning removed
2025-03-05 05:09:57 +01:00
Oliver Giles
27daf26916 FindGettext: remove use of deprecated -s option
The --sorted-output/-s option to msgmerge has been deprecated
in gettext 0.23.

See https://lists.nongnu.org/archive/html/info-gnu/2024-12/msg00000.html
2025-03-05 10:14:53 +13:00
Brad King
781a67bf5e CUDA/Clang: Determine cross-compiling target from CMAKE_CUDA_COMPILER_TARGET
When cross-compiling CUDA with Clang, `CMAKE_CUDA_COMPILER_TARGET` is
typically set to the target triple.  Use it to select the CUDA toolkit
target directory.
2025-03-04 13:51:29 -05:00
Brad King
40eeca77c3 CUDA/Clang: Sync target directory table with FindCUDAToolkit
Since commit 6636693134 (FindCUDAToolkit: Re-unify with
Internal/CUDAToolkit, 2020-06-11, v3.18.0-rc2~6^2~7) the table is
duplicated.

Update the CUDA target directory table for Clang to account for changes
to the equivalent table in FindCUDAToolkit:

* commit bcdd486bf7 (CUDA: Enable support on QNX, 2020-10-30,
                     v3.19.0-rc3~8^2~1)
* commit 743d4181b4 (FindCUDAToolkit: Support cross-compilation to
                     sbsa-linux, 2023-01-11, v3.26.0-rc1~118^2)
2025-03-04 13:51:29 -05:00
Brad King
05efcdd464 FindCUDA: Sync target directory table with FindCUDAToolkit
The table has been duplicated since commit 69fcad9332 (CUDAToolkit: Add
support for cross-compiling, 2020-01-21, v3.17.0-rc1~104^2~1).
2025-03-04 13:51:29 -05:00
Brad King
213ea8a752 Merge topic 'patch-ProcessorCount'
9e40bd860f ProcessorCount: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10407
2025-03-04 08:48:22 -05:00
Brad King
0af6821799 Merge topic 'cpack-rpm-weak-deps-tags'
14baa13ab8 CPack/RPM: Add support for all weak dependency tags
847f515934 Tests: Simplify RunCMake.CPack_RPM.SUGGESTS expected output

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10415
2025-03-04 08:47:25 -05:00
Alex Turbov
4d99e2b702 Help(FindJasper): Fix the spelling typo in the variable documentation 2025-03-04 04:25:36 +04:00
Kitware Robot
1772622772 LICENSE: Replace references to Copyright.txt with LICENSE.rst
```
git grep -lz 'Copyright.txt or https://cmake.org/licensing ' |
  while IFS= read -r -d $'\0' f ; do
    sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / {
              s/Copyright.txt/LICENSE.rst/
            }' "$f" ; done
```
2025-03-03 10:43:35 -05:00
Kitware Robot
de273b2e11 LICENSE: Replace references to Copyright.txt with LICENSE.rst
```
git grep -lz 'Copyright.txt or https://cmake.org/licensing ' |
  while IFS= read -r -d $'\0' f ; do
    sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / {
              s/Copyright.txt/LICENSE.rst/
            }' "$f" ; done
```
2025-03-03 09:56:07 -05:00
Balazs Kosaras
14baa13ab8 CPack/RPM: Add support for all weak dependency tags
Co-authored-by: Brad King <brad.king@kitware.com>
2025-03-03 09:09:15 -05:00
Brad King
759ba45bdb Merge topic 'cpack-rpm-weak-deps'
283a48403f CPack/RPM: Fix detection of RPM support for weak dependencies
ab4e74ad0b CPack/RPM: Remove redundant conditions for presence of rpmbuild

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10403
2025-03-03 08:56:55 -05:00
Marc Chevrier
5120987bc3 Merge topic 'FindPython-tests-refactoring'
aed9dffdc9 FindPython: migrate tests to RunCMake framework

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10380
2025-03-02 08:00:08 -05:00
Peter Kokot
9e40bd860f ProcessorCount: Update documentation
Changes:
- Module documentation is sorted into a function description and a note
  section is added where cmake_host_system_information() is mentioned as
  an alternative.
- Module usage example is moved to a titled section at the end for
  better readability.
- Instead of mentioning the physical processors count, the logical
  processors is used as this is what is most likely wanted in most cases
  and also all the used commands in this module return this number.
- Function's code style is synced a bit across the code base.
2025-03-01 19:56:16 +01:00
Brad King
db892c72b9 Merge topic 'patch-UseEcos-ECOSCONFIG_EXECUTABLE'
debd5ca4ff UseEcos: Mark ECOSCONFIG_EXECUTABLE as advanced

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10404
2025-03-01 10:30:57 -05:00
Brad King
be3df58ff5 Merge topic 'patch-processor-count-cmd-sysinfo'
3563e37d1b ProcessorCount: Mark ProcessorCount_cmd_sysinfo as advanced

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10400
2025-03-01 10:17:08 -05:00
Brad King
283a48403f CPack/RPM: Fix detection of RPM support for weak dependencies
Add a missing `find_program` call to populate `RPM_EXECUTABLE`.
This was left out of two previous changes that intended to query
the `rpm` executable:

* In commit 9b53eca317 (CPack/RPM: Fix weak dep support, 2021-06-29,
  v3.21.0-rc2~4^2), without `RPM_EXECUTABLE` the query always failed,
  so we were concluding that weak dependencies are not supported even
  when they are.

* In commit 488de6294a (CPack: correctly perform querytags on old
  versions of RPM, 2025-01-09, v4.0.0-rc1~182^2~3), without
  `RPM_EXECUTABLE` the query always failed.  This change has not
  yet been in a release anyway.

Also fix the test case for the "suggests" field to verify this.

Issue: #22350
Reported-by: Balazs Kosaras <balazskosaras@gmail.com>
2025-02-28 17:24:44 -05:00