In a project that has enabled C or CXX, we bias ASM and Fortran compiler
selection to match. Propagate this bias into the `check_language` test
project so that if it succeeds, we will select the same compiler when
enabling the tested language in the calling project.
Fixes: #19350
This updates FindLua, FindLua50, and FindLua51 modules:
- Added examples section.
- Synced module documentation with other similar find modules.
- Added notes about Lua 5.0 and 5.1 branches being obsolete and newer
version should be used with the FindLua module.
- For the example of including Lua headers the angled includes are now
used instead of quoted style. Angled brackets are more convenient
for system and such dependencies as they indicate that include
directories have priority over local files found in the current
directory by the compiler.
- Removed mentioning CMake 2.x for version variables being introduced as
these are now being cleaned in the CMake 4 documentation (CMake docs
are at this point considering the 2.8.12.2 as the initial state upon
which new and changed items are documented through versions - at least
for modules).
- `<PackageName>_FOUND` variables used (since CMake 3.3), the uppercased
`<PACKAGENAME>_FOUND` are also set to the same value.
LLVM/Clang 20, when invoked as `clang++ -E -c ...`, now warns:
warning: argument unused during compilation: '-c'
Drop the unnecessary `-c` flag. Also add a `-w` flag to suppress
warnings so their text is not parsed as predefines.
This removes all `versionadded` RST directives mentioning CMake 2.x
branch from CMake modules. These version notes are now being cleaned in
the CMake 4 documentation (CMake docs are at this point considering the
2.8.12.2 as the initial state upon which new and changed items are
documented through versions).
- Synced module documentation with other similar find modules.
- Extended example with imported target.
- Removed mentioning CMake 2.x in versionadded RST directives as these
are now being cleaned in the CMake 4 documentation (CMake docs are at
this point considering the 2.8.12.2 as the initial state upon which
new and changed items are documented through versions - at least for
modules).
- Added separate "Deprecated Variables" section.
- Changed the deprecation version number to 2.8.3 as it is for CMake
version and not the module internal version 1.3.
- Added separate "Cache Variables" section.
- Used lowercase style for the cxxtest_add_test() command.
CUDA 12.8 deprecates architectures below 75. Presumably a future
version will remove it. Prepare infrastructure to avoid relying on
hard-coded arch 50 in this test.
This extends commit 63a5460faf (ci: Tell CudaOnly.Architecture test what
specific architecture to use, 2025-04-21).
47ddbc9ded CUDA/Clang: Prefer NVCC's default architecture for each CUDA Toolkit version
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10698
Update commit 712cb8cb14 (ctest: Restore support for -T Test without
dashboard configuration, 2025-03-06, v4.0.0-rc4~11^2) to avoid
conflating coverage of CMake itself with the coverage mode of ctest
being tested.
This makes the default CUDA architecture consistent across compilers,
and makes it more likely that the resulting binary will run on the
user's hardware.
This also makes hardware requirements for CI builds more consistent.
See commit 4f2178c4a8 (ci: add tags to tie CUDA jobs to runners with
hardware supporting them, 2025-04-21).