Commit Graph

70419 Commits

Author SHA1 Message Date
Brad King 782f054ccb Merge topic 'check_language-fix'
89df8efba4 CheckLanguage: Bias compiler selection using already-enabled languages
f290240b0b CheckLanguage: Simplify test project generation
7ae8764710 Tests: Extend CMakeOnly.CheckLanguage to enable languages whose checks succeed
a049413bb6 Tests: Extend CMakeOnly.CheckLanguage to cover ASM

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10705
2025-04-25 08:54:31 -04:00
Brad King 93f59ed145 Merge topic 'patch-docs-cmake-versions'
b787b94d1a Help: Remove versionadded for CMake 2.x

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10708
2025-04-25 08:46:33 -04:00
Brad King 7c3fb57b21 Merge topic 'patch-FindLua'
e83f322938 FindLua*: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10706
2025-04-25 08:44:33 -04:00
Brad King 203a5e6985 Merge topic 'patch-FindJNI'
27c1b84ef7 FindJNI: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10709
2025-04-25 08:43:37 -04:00
Kitware Robot 3570c66d52 CMake Nightly Date Stamp 2025-04-25 00:04:27 -04:00
Oleg Derevenetz 89df8efba4 CheckLanguage: Bias compiler selection using already-enabled languages
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
2025-04-24 11:02:45 -04:00
Brad King f290240b0b CheckLanguage: Simplify test project generation
Inspired-by: Oleg Derevenetz <oleg-derevenetz@yandex.ru>
2025-04-24 11:02:45 -04:00
Brad King 7ae8764710 Tests: Extend CMakeOnly.CheckLanguage to enable languages whose checks succeed 2025-04-24 08:56:00 -04:00
Brad King a049413bb6 Tests: Extend CMakeOnly.CheckLanguage to cover ASM 2025-04-24 08:55:10 -04:00
Peter Kokot e83f322938 FindLua*: Update documentation
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.
2025-04-24 14:06:45 +02:00
Brad King 468270d8ac Merge branch 'release-4.0' 2025-04-24 07:46:20 -04:00
Brad King 1de44c5fb4 Merge branch 'release-3.31' 2025-04-24 07:46:13 -04:00
Brad King f4d41e7166 Merge branch 'release-3.31' into release-4.0 2025-04-24 07:46:01 -04:00
Brad King 86d1a616e7 Merge branch 'release-4.0' 2025-04-24 07:45:21 -04:00
Brad King 0bc051c180 Merge topic 'automoc-predefs'
ccef69bde4 AUTOMOC: Avoid compiler warnings while computing predefines

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10702
2025-04-24 07:45:21 -04:00
Brad King b729a9d319 Merge topic 'automoc-predefs' into release-4.0
ccef69bde4 AUTOMOC: Avoid compiler warnings while computing predefines

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10702
2025-04-24 07:45:19 -04:00
Brad King 86b324ce3d Merge branch 'release-4.0' 2025-04-24 07:43:48 -04:00
Brad King 977634ffb5 Merge topic 'cuda_tests_no_hardcoded_sm_values'
83a0c72a2d ci: Tell CudaOnly.CompileFlags test what specific architecture to use

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10701
2025-04-24 07:43:48 -04:00
Brad King 1e6356e67f Merge topic 'cuda_tests_no_hardcoded_sm_values' into release-4.0
83a0c72a2d ci: Tell CudaOnly.CompileFlags test what specific architecture to use

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10701
2025-04-24 07:43:46 -04:00
Brad King 98bc051e3a Merge topic 'project-variable-cleanup'
c4d12d7d1f project: cleanup variable creation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10704
2025-04-24 07:14:17 -04:00
Brad King a820819bb4 Merge topic 'update-kwsys'
251124dfe1 Merge branch 'upstream-KWSys' into update-kwsys
43effccf86 KWSys 2025-04-23 (6c76a545)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10700
2025-04-24 07:13:15 -04:00
Brad King ee2463e8c5 Merge topic 'automoc-predefs' into release-3.31
ccef69bde4 AUTOMOC: Avoid compiler warnings while computing predefines

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10702
2025-04-24 07:12:14 -04:00
Brad King 2e72a6af2d Merge topic 'cuda_tests_no_hardcoded_sm_values' into release-3.31
83a0c72a2d ci: Tell CudaOnly.CompileFlags test what specific architecture to use

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10701
2025-04-24 07:11:28 -04:00
Brad King 561df17f2d Merge topic 'patch-FindCxxTest'
3a266612ec FindCxxTest: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10703
2025-04-24 07:10:04 -04:00
Brad King ccef69bde4 AUTOMOC: Avoid compiler warnings while computing predefines
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.
2025-04-24 07:07:00 -04:00
Kitware Robot e3e6fc0cb8 CMake Nightly Date Stamp 2025-04-24 00:05:10 -04:00
Peter Kokot 27c1b84ef7 FindJNI: Update documentation
- Added examples section.
- Synced module documentation a bit with other similar find modules.
- Added separate components section.
2025-04-24 01:10:35 +02:00
Peter Kokot b787b94d1a Help: Remove versionadded for CMake 2.x
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).
2025-04-23 23:03:36 +02:00
Vito Gamberini c4d12d7d1f project: cleanup variable creation 2025-04-23 12:23:54 -04:00
Peter Kokot 3a266612ec FindCxxTest: Update documentation
- 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.
2025-04-23 17:47:16 +02:00
Robert Maynard 83a0c72a2d ci: Tell CudaOnly.CompileFlags test what specific architecture to use
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).
2025-04-23 09:28:13 -04:00
Brad King 251124dfe1 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-04-23 (6c76a545)
2025-04-23 09:11:30 -04:00
KWSys Upstream 43effccf86 KWSys 2025-04-23 (6c76a545)
Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit 6c76a54541999a78c9ce0c9f179bb96eb218a199 (master).

Upstream Shortlog
-----------------

Aditya Vidyadhar Kamath (1):
      4cd115f2 testSystemTools: Fix preprocessor condition for AIX
2025-04-23 09:11:30 -04:00
Brad King 0a0f33dfad Merge branch 'release-4.0' 2025-04-23 08:58:01 -04:00
Brad King c5669f92a5 Merge branch 'release-3.31' 2025-04-23 08:57:53 -04:00
Brad King 7280dc5e02 Merge branch 'release-3.31' into release-4.0 2025-04-23 08:57:43 -04:00
Brad King c25c787198 Merge branch 'release-4.0' 2025-04-23 08:57:08 -04:00
Brad King 9510900be0 Merge topic 'clang-cuda-default-arch'
47ddbc9ded CUDA/Clang: Prefer NVCC's default architecture for each CUDA Toolkit version

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !10698
2025-04-23 08:57:07 -04:00
Brad King 8dee757664 Merge topic 'clang-cuda-default-arch' into release-4.0
47ddbc9ded CUDA/Clang: Prefer NVCC's default architecture for each CUDA Toolkit version

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !10698
2025-04-23 08:57:06 -04:00
Brad King 26fd56549a Merge topic 'clang-cuda-default-arch' into release-3.31
47ddbc9ded CUDA/Clang: Prefer NVCC's default architecture for each CUDA Toolkit version

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10698
2025-04-23 08:56:24 -04:00
Brad King 21353b5547 Merge branch 'release-4.0' 2025-04-23 08:43:06 -04:00
Brad King bf5661bb25 Merge topic 'test-ctest-regression'
6bc5b467a9 Tests: Fix RunCMake.CTestCommandLine under ctest -T Coverage

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10699
2025-04-23 08:43:05 -04:00
Brad King 7d36c4e960 Merge topic 'test-ctest-regression' into release-4.0
6bc5b467a9 Tests: Fix RunCMake.CTestCommandLine under ctest -T Coverage

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10699
2025-04-23 08:43:04 -04:00
Brad King 66b0b66fe1 Merge topic 'patch-FindProducer'
825d38a3cb FindProducer: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10694
2025-04-23 08:39:46 -04:00
Brad King a37f463f5e Merge topic 'patch-FindODBC'
92a6069ed0 FindODBC: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10697
2025-04-23 08:35:27 -04:00
Brad King 82802ab740 Merge topic 'patch-FindVulkan'
4376b15bae FindVulkan: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10693
2025-04-23 08:34:04 -04:00
Kitware Robot ccde2db4ff CMake Nightly Date Stamp 2025-04-23 00:04:03 -04:00
Brad King 6bc5b467a9 Tests: Fix RunCMake.CTestCommandLine under ctest -T Coverage
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.
2025-04-22 11:25:24 -04:00
Brad King 47ddbc9ded CUDA/Clang: Prefer NVCC's default architecture for each CUDA Toolkit version
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).
2025-04-22 09:51:02 -04:00
Brad King dc8ead96c2 Merge topic 'file-download-url-error'
cc2cbfc61e file: Add more context to errors from file(DOWNLOAD)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10672
2025-04-22 09:35:29 -04:00