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
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.
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)
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
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.
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>
- Module macros described as a list with the usual RST syntax.
- Mention of internal macro ecos_add_target_lib() removed, as it is
internal implementation meant for the ecos_add_executable().
- Documentation from internal comments moved to the main docs header.
- Variable descriptions updated.
- Internal comments adjusted for readability.
When a new installation prompts to uninstall the old version,
use the display name of the old version from the registry.
This only affects packages that change their CPACK_NSIS_DISPLAY_NAME.
Patch-by: David Golub <golubdr@gmail.com>
Fixes: #14112
Previously our call to `check_symbol_exists` was passing an absolute
path to the `cl.h` header to be included. However, this might not
include its other headers correctly. We already set
`CMAKE_REQUIRED_INCLUDES` such that `CL/cl.h` can be included by
the check, so we do not need to include by absolute path.
`FindThreads` requires that C or CXX be enabled. Previously we were
only checking that `CMAKE_{C,CXX}_COMPILER` have been set, which does
not mean the languages have been enabled.
To avoid issues with multi-line scripts, regexes that match
unquoted shell command arguments shouldn't include newlines.
Fixes: #12553
Co-authored-by: K. R. Walker
Add the `CrayClang` compiler ID to the list of OpenMP flag candidates and
ensure the flags are propagated to the link step to trigger the Cray OpenMP
offload linker (`cce_omp_offload_linker`) wrapper.
Fixes: #24402, #24962
f34c28fd57 FindGettext: CMake linting: fix mismatching spaces
c9b7906968 FindGettext: Remove the unneeded space before a full stop
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10341