Commit Graph

70434 Commits

Author SHA1 Message Date
Peter Kokot bc9faec5e5 FindMFC, CMAKE_MFC_FLAG: Update documentation
FindMFC:
- Synced module documentation with other similar find modules.
- Added examples section.
- Added reference link to CMAKE_MFC_FLAG variable.

CMAKE_MFC_FLAG:
- Added separate examples section.
- Mentioned FindMFC module.
- Used target_compile_definitions() instead of add_definitions().
2025-04-28 02:36:29 +02:00
Kitware Robot b73c194b98 CMake Nightly Date Stamp 2025-04-27 00:04:39 -04:00
Brad King 1cd89e65d7 Merge topic 'ci-fedora-42'
36d96ce044 ci: Drop outdated HDF5 Fortran compiler wrapper patch from Fedora jobs
5b21de16a0 ci: use Fedora 42 images and environments
efa818f661 ci: update Fedora base images to Fedora 42
585e1655c2 ci: Update cppdap in extdeps jobs
01d0f037b6 ci: Remove superuser tools from PATH in Linux jobs
8b1b201154 clang-tidy: suppress misc-redundant-expression lint on macro expansion
3d0ac2dafa clang-tidy: fix bugprone-unhandled-self-assignment lint
16455374cf Source: Suppress gcc 15 -Wmaybe-uninitialized in std::function
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10711
2025-04-26 10:00:15 -04:00
Kitware Robot 6cab79c7bb CMake Nightly Date Stamp 2025-04-26 00:04:20 -04:00
Brad King cd7cbcc8fb Merge topic 'ctest_instrumentation_outputsizes'
2df19bec2b instrumentation: include output sizes in CTest XML

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Martin Duffy <martin.duffy@kitware.com>
Merge-request: !10712
2025-04-25 08:55:35 -04:00
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
Brad King 36d96ce044 ci: Drop outdated HDF5 Fortran compiler wrapper patch from Fedora jobs
Drop the patch step from commit 919de8785b (ci: Patch HDF5 Fortran
compiler wrappers in Fedora jobs, 2023-03-30, v3.27.0-rc1~242^2~1).
Fedora 42's HDF5 packages fixed the problem.
2025-04-25 08:33:35 -04:00
Brad King 5b21de16a0 ci: use Fedora 42 images and environments 2025-04-25 08:33:35 -04:00
Brad King efa818f661 ci: update Fedora base images to Fedora 42 2025-04-25 08:33:35 -04:00
Brad King 585e1655c2 ci: Update cppdap in extdeps jobs
Match the version from commit 5098a08fde (cppdap: Update script to get
version as of 2024-08-02, 2024-08-13, v3.31.0-rc1~232^2~1).
2025-04-25 08:33:35 -04:00
Brad King 01d0f037b6 ci: Remove superuser tools from PATH in Linux jobs
Our Linux CI jobs incidentally run as `root` in their containers, but
do not need any superuser tools.  Drop `sbin` entries from the `PATH`.
This also avoids finding user tools through Fedora 42's `sbin -> bin`
symbolic links.
2025-04-25 08:33:30 -04:00
Kitware Robot 3570c66d52 CMake Nightly Date Stamp 2025-04-25 00:04:27 -04:00
Zack Galbreath 2df19bec2b instrumentation: include output sizes in CTest XML 2025-04-24 11:39:45 -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 8b1b201154 clang-tidy: suppress misc-redundant-expression lint on macro expansion 2025-04-24 07:56:40 -04:00
Brad King 3d0ac2dafa clang-tidy: fix bugprone-unhandled-self-assignment lint 2025-04-24 07:56:40 -04:00
Brad King 16455374cf Source: Suppress gcc 15 -Wmaybe-uninitialized in std::function
The warning is in the `std::function` implementation.
2025-04-24 07:56:39 -04:00
Brad King b1c22bdc38 Source: Fix -Wformat warnings 2025-04-24 07:56:39 -04: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