Commit Graph

71514 Commits

Author SHA1 Message Date
Peter Kokot 5503235b4d FindOpenSSL: Add OpenSSL_VERSION
This deprecates the OPENSSL_VERSION result variable.

Issue: #27088
2025-08-04 20:58:49 +02:00
Brad King 185a4e6c5d Merge topic 'patch-modules-index'
54486682a7 Help: Reposition internal modules

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11007
2025-08-04 10:41:03 -04:00
Brad King 85114ada92 Merge topic 'patch-FindAVIFile'
d938e10e6e FindAVIFile: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11012
2025-08-04 10:39:35 -04:00
Brad King a1c1b8222b Merge topic 'patch-FindCups-version'
5e7bb96b81 FindCups: Add Cups_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11000
2025-08-04 10:37:33 -04:00
Brad King 2ce48479c4 Merge topic 'patch-FindLibLZMA-version'
08fc190c03 FindLibLZMA: Add LibLZMA_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11001
2025-08-04 10:35:18 -04:00
Brad King 9a1a04faad Merge topic 'patch-FindOpenMP'
4dd4044de9 FindOpenMP: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11011
2025-08-04 10:31:51 -04:00
Brad King 7b8ca3a3cd Merge topic 'patch-FindBacktrace'
9bfd66fb42 FindBacktrace: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11010
2025-08-04 10:29:29 -04:00
Brad King d219994cf0 Merge topic 'patch-FindSDL-version'
faca50bd3f FindSDL*: Add <PackageName>_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11004
2025-08-04 10:27:44 -04:00
Brad King 3bed1629cf Merge topic 'patch-FindJPEG-docs'
2d59d24075 FindJPEG: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11006
2025-08-04 10:25:20 -04:00
Brad King 481d4775bd Merge topic 'patch-FindSQLite3'
d55fffca3e FindSQLite3: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11005
2025-08-04 10:22:52 -04:00
Brad King ba9efd5868 Merge topic 'patch-FindGIF'
df606cbf2d FindGIF: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11003
2025-08-04 10:20:34 -04:00
Brad King 5807ed7359 Merge topic 'patch-FindZLIB-docs'
d52817f2fd FindZLIB: Sync docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11002
2025-08-04 10:17:56 -04:00
Brad King 8500539328 Merge topic 'find-var-doc-clarification'
cba75e669a find_xxx: Clarify command description

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10996
2025-08-04 10:14:20 -04:00
Kitware Robot ee45e7d426 CMake Nightly Date Stamp 2025-08-04 00:04:45 -04:00
Peter Kokot 4dd4044de9 FindOpenMP: Update documentation
- Added intro code block showing how to use this module.
- Added version when imported targets were introduced.
- Added examples section.
- Updated and synced the module documentation with other similar find
  modules.
2025-08-04 00:59:40 +02:00
Peter Kokot d938e10e6e FindAVIFile: Sync documentation
- Added intro code block showing how to use this module.
- Extended example section.
- Synced variable descriptions.
- Additionally, moved the AVIFILE_AVIPLAY_LIBRARY required variable to
  the beginning in find_package_handle_standard_args() to have more
  informational and synced log output.
2025-08-04 00:20:40 +02:00
Peter Kokot 9bfd66fb42 FindBacktrace: Sync documentation
- Added intro code block showing how to include this module.
- Resorted variables.
2025-08-03 23:49:55 +02:00
Peter Kokot 08fc190c03 FindLibLZMA: Add LibLZMA_VERSION
This deprecates the LIBLZMA_VERSION result variable.

Issue: #27088
2025-08-03 22:58:45 +02:00
Peter Kokot 5e7bb96b81 FindCups: Add Cups_VERSION
This deprecates the CUPS_VERSION_STRING result variable.

Issue: #27088
2025-08-03 22:47:00 +02:00
Kitware Robot 55dc83e3d7 CMake Nightly Date Stamp 2025-08-03 00:05:22 -04:00
Peter Kokot 54486682a7 Help: Reposition internal modules
This adds a new section in the modules index to move some internal
modules out of the main two lists - utility modules and find modules.

They are not intended to be used by projects.

Additionally, SquishTestScript is not technically deprecated module. It
is just internally used by FindSquish module and mistakenly documented
and rendered.

Issue: #26851
2025-08-02 19:15:57 +02:00
Brad King 6239a7be37 Merge branch 'release-4.1' 2025-08-02 06:26:20 -04:00
Brad King 91b94a392b Merge topic 'link-flags'
e349b471d8 MSVC: Fix regression that links shared libraries with bogus -shared flag

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Michael Grossfeld <michael.grossfeld@amd.com>
Merge-request: !10998
2025-08-02 06:26:20 -04:00
Brad King a078076983 Merge topic 'link-flags' into release-4.1
e349b471d8 MSVC: Fix regression that links shared libraries with bogus -shared flag

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Michael Grossfeld <michael.grossfeld@amd.com>
Merge-request: !10998
2025-08-02 06:26:18 -04:00
Brad King 383406fc18 Merge topic 'pass-trivial-by-value'
b1fdab3cc1 source: Pass small and trivially copyable types by value
7829ea76ad source: Pass cmFileTime by value
99c10afc26 source: Pass trivial dap::*Event by value
0bcb8d6e3c source: Pass cmFileAPI::Object by value
964e992ec5 source: Pass cmCTestResourceAllocator::Resource by value
ee1c32b6d7 source: Pass cmBuildOptions by value
fa0e5906ff source: Pass cmStringRange by value
0c4040057a source: Pass cm::string_view by value

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10948
2025-08-02 06:23:48 -04:00
Brad King 63753ed9ff Merge topic 'ci-iar'
49382f0377 ci: Update to IAR arm 9.70.1, riscv 3.40.1, rl78 5.20.1, rx 5.20.1

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10999
2025-08-02 06:16:42 -04:00
Kitware Robot 3a9c61ed5f CMake Nightly Date Stamp 2025-08-02 00:05:08 -04:00
Peter Kokot 2d59d24075 FindJPEG: Sync documentation
- Added intro code block showing how to use this module.
- Resorted result variables.
- Renamed "Obsolete Variables" to "Deprecated Variables" to make it more
  clear, what to use.
2025-08-02 04:31:59 +02:00
Peter Kokot d55fffca3e FindSQLite3: Sync documentation
- Added intro code block showing how to use this module.
- Resorted variables and synced their descriptions with other similar
  find modules.
2025-08-02 04:19:03 +02:00
Peter Kokot faca50bd3f FindSDL*: Add <PackageName>_VERSION
This adds the `<PackageName>_VERSION` result variables and deprecates
the `<PackageName>_VERSION_STRING` result variables for the following
modules:

* FindSDL_gfx
* FindSDL_image
* FindSDL_mixer
* FindSDL_net
* FindSDL_sound
* FindSDL_ttf

Issue: #27088
2025-08-02 03:54:18 +02:00
Peter Kokot df606cbf2d FindGIF: Sync documentation
- Added intro code block showing how to use this module.
- Resorted variables and synced their descriptions.
2025-08-02 03:23:04 +02:00
Peter Kokot d52817f2fd FindZLIB: Sync docs
This syncs the module documentation with other similar find modules:

- Added intro code block, how to use this module.
- Resorted result variables and their descriptions.
- Renamed section "Legacy Variables" to "Deprecated Variables" to be
  more clear which variables to use, and moved them to the bottom.
2025-08-02 03:02:21 +02:00
Brad King e349b471d8 MSVC: Fix regression that links shared libraries with bogus -shared flag
Clear `CMAKE_SHARED_LIBRARY_CREATE_<LANG>_FLAGS` since no special
link flags are needed to create a DLL with MSVC toolchains.
Our shared library creation rules never referenced that placeholder,
so this variable was never used until commit 951e4d3f62 (Ninja,Makefile:
Move builtin linker flags to <LINK_FLAGS> placeholder, 2025-06-09,
v4.1.0-rc1~37^2~2) taught the generators to look it up directly.

This was not previously noticed because the `-shared` flag
is ignored unless the `-WX` flag enables an error on it.

Fixes: #27106
2025-08-01 12:37:55 -04:00
Brad King 49382f0377 ci: Update to IAR arm 9.70.1, riscv 3.40.1, rl78 5.20.1, rx 5.20.1
Run `.gitlab/ci/repackage/iar.ps1` with the installer and host the
package archives ourselves.
2025-08-01 12:18:19 -04:00
Vito Gamberini cba75e669a find_xxx: Clarify command description
Also cleans up a missing infinitive in find_file

Fixes: #25844
2025-08-01 11:33:13 -04:00
Brad King a4ef872a24 Merge topic 'doc-package-presets-no-effect-keywords'
60a921dce4 Help: Note that some packaging preset keywords don't work as expected

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10997
2025-08-01 11:22:14 -04:00
Brad King 04dee97487 Merge topic 'patch-find-modules-versions'
7e6634ef67 FindLTTngUST: Add LTTngUST_VERSION
5f2fdb7cbf FindPNG: Add PNG_VERSION
dd714b4b99 FindLibXslt: Add LibXslt_VERSION
1b956832d8 FindLibXml2: Add LibXml2_VERSION
2ce689eae2 FindJasper: Add Jasper_VERSION
58d61f6846 FindFreetype: Add Freetype_VERSION
1e61580bd3 FindEXPAT: Add EXPAT_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !10994
2025-08-01 11:20:10 -04:00
Brad King 26357b1ddf Merge topic 'ci-warning-flags'
b51127249e ci: Enable -Wstrict-prototypes in tests for merge request pipelines
58d5f34d31 Replace deprecated -Werror-implicit-function-declaration with -Werror=
78c0935c9b Enable -Wundefined-func-template when building CMake's C++ code
2c6dde430a Enable -Wstrict-prototypes when building CMake's C code

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10983
2025-08-01 11:18:05 -04:00
Brad King d1be722330 Merge topic 'issue-24923-new-cli-tools'
8797912e4d cmake -E: Add copy_if_newer and copy_directory_if_newer

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10957
2025-08-01 11:13:56 -04:00
Daniel Pfeifer b1fdab3cc1 source: Pass small and trivially copyable types by value 2025-08-01 09:56:00 -04:00
Daniel Pfeifer 7829ea76ad source: Pass cmFileTime by value 2025-08-01 09:56:00 -04:00
Daniel Pfeifer 99c10afc26 source: Pass trivial dap::*Event by value 2025-08-01 09:55:59 -04:00
Daniel Pfeifer 0bcb8d6e3c source: Pass cmFileAPI::Object by value 2025-08-01 09:55:50 -04:00
Craig Scott 60a921dce4 Help: Note that some packaging preset keywords don't work as expected
Due to how the default value of the CPACK_PACKAGE_FILE_NAME variable
is implemented, the packageName and packageVersion fields of packaging
presets don't affect the final package file name. They can still affect other
aspects of the package produced, depending on the package generator
used, leading to inconsistencies in the generated package. There is no
warning or error about this when producing the packages, and fixing the
implementation is non-trivial. Until such a fix can be made, add a note to
the docs to make users aware of this unexpected behavior.

Issue: #25248
2025-08-01 16:50:20 +10:00
Kitware Robot 025794aab1 CMake Nightly Date Stamp 2025-08-01 00:05:06 -04:00
Peter Kokot 7e6634ef67 FindLTTngUST: Add LTTngUST_VERSION
This deprecates the LTTNGUST_VERSION_STRING result variable.

Issue: #27088
2025-07-31 21:02:26 +02:00
Peter Kokot 5f2fdb7cbf FindPNG: Add PNG_VERSION
This deprecates the PNG_VERSION_STRING result variable.

Additionally, the documentation has been adjusted and synced with other
similar find modules:
- Added "Deprecated Variables" section and deprecated versions.
- Added intro code block how to use this module.

Issue: #27088
2025-07-31 21:02:05 +02:00
Peter Kokot dd714b4b99 FindLibXslt: Add LibXslt_VERSION
This deprecates the LIBXSLT_VERSION_STRING result variable.

Issue: #27088
2025-07-31 20:59:21 +02:00
Peter Kokot 1b956832d8 FindLibXml2: Add LibXml2_VERSION
This deprecates the LIBXML2_VERSION_STRING result variable.

Issue: #27088
2025-07-31 20:57:44 +02:00
Peter Kokot 2ce689eae2 FindJasper: Add Jasper_VERSION
This deprecates the JASPER_VERSION_STRING result variable.

Issue: #27088
2025-07-31 20:56:41 +02:00