Brad King
2ec20fc2f8
Merge topic 'patch-FindHg-version'
...
e463cf3283 FindHg: Add Hg_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11083
2025-08-18 10:20:21 -04:00
Brad King
9062fc9c16
Merge topic 'install-object-name-strategy'
...
c651b0e002 objects: implement installation naming strategies
29c7f19280 cmTarget: add the `INSTALL_OBJECT_NAME_STRATEGY` property
757c40c478 cmObjectLocation: add a class to track object locations
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11046
2025-08-18 09:45:19 -04:00
Brad King
0aec7864f6
Merge topic 'patch-FindSubversion-version'
...
051b670e51 FindSubversion: Add Subversion_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11053
2025-08-15 09:30:14 -04:00
Brad King
63d88db7ac
Merge topic 'patch-FindLua-version'
...
138fd2c665 FindLua*: Add Lua_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11052
2025-08-15 09:21:43 -04:00
Peter Kokot
e463cf3283
FindHg: Add Hg_VERSION
...
This deprecates the HG_VERSION_STRING result variable.
Issue: #27088
2025-08-15 05:34:56 +02:00
Brad King
5a09f5bd8e
Merge topic 'patch-FindDevIL-version'
...
0e00166462 FindDevIL: Add DevIL_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11072
2025-08-14 09:06:41 -04:00
Brad King
b30241272b
Merge topic 'patch-FindPerl-version'
...
4f1732d96b FindPerl, FindPerlLibs: Add Perl_VERSION and PerlLibs_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11054
2025-08-14 08:27:25 -04:00
Peter Kokot
138fd2c665
FindLua*: Add Lua_VERSION
...
New result variables in FindLua:
* Lua_VERSION
* Lua_VERSION_MAJOR
* Lua_VERSION_MINOR
* Lua_VERSION_PATCH
Deprecated variables in FindLua:
* LUA_VERSION_STRING
* LUA_VERSION_MAJOR
* LUA_VERSION_MINOR
* LUA_VERSION_PATCH
Deprecated variables in FindLua51:
* LUA_VERSION_STRING
Issue: #27088
2025-08-14 07:37:26 +02:00
Peter Kokot
051b670e51
FindSubversion: Add Subversion_VERSION
...
This deprecates the Subversion_VERSION_SVN result variable.
Issue: #27088
2025-08-14 07:25:00 +02:00
Peter Kokot
0e00166462
FindDevIL: Add DevIL_VERSION
...
This module now provides a DevIL_VERSION result variable and supports
the `<version>` argument in the find_package() call. Version range can
be also specified.
Fixes : #26858
2025-08-12 07:17:58 +02:00
Peter Kokot
2f8b837a30
FindGnuTLS: Add GnuTLS_VERSION
...
This deprecates the GNUTLS_VERSION result variable.
Instead of setting the version from pkg-config, the header files can be
used. GnuTLS versions 2.7.2 and later define the GNUTLS_VERSION in
`<gnutls/gnutls.h>` header. Earlier versions defined LIBGNUTLS_VERSION.
If finding such string in header is not successful, fallback to version
from pkg-config is used.
Issue: #27088
2025-08-10 09:39:44 +02:00
Peter Kokot
4f1732d96b
FindPerl, FindPerlLibs: Add Perl_VERSION and PerlLibs_VERSION
...
This deprecates the PERL_VERSION_STRING result variable.
Issue: #27088
2025-08-08 22:22:03 +02:00
Brad King
8ae56a88bf
Merge topic 'patch-FindSquish-version'
...
ca52983884 FindSquish: Add Squish_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11041
2025-08-08 09:26:22 -04:00
Brad King
c00d931e13
Merge topic 'patch-FindOpenSceneGraph-version'
...
30dddb4b11 FindOpenSceneGraph: Add OpenSceneGraph_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11040
2025-08-08 09:22:28 -04:00
Ben Boeckel
29c7f19280
cmTarget: add the INSTALL_OBJECT_NAME_STRATEGY property
2025-08-07 11:24:32 -04:00
Peter Kokot
ca52983884
FindSquish: Add Squish_VERSION
...
This deprecates the following result variables:
* SQUISH_VERSION
* SQUISH_VERSION_MAJOR
* SQUISH_VERSION_MINOR
* SQUISH_VERSION_PATCH
Issue: #27088
2025-08-06 23:53:37 +02:00
Peter Kokot
30dddb4b11
FindOpenSceneGraph: Add OpenSceneGraph_VERSION
...
This deprecates the OPENSCENEGRAPH_VERSION result variable.
Issue: #27088
2025-08-06 23:52:10 +02:00
Peter Kokot
4786a6f34a
FindGnuplot: Add Gnuplot_VERSION
...
This deprecates the GNUPLOT_VERSION_STRING result variable.
Issue: #27088
2025-08-06 23:51:23 +02:00
Brad King
2e3dde3727
Merge topic 'Set-CACHE-variable'
...
8af64914d6 set/unset commands: add CACHE{variable} syntax support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !11016
2025-08-06 10:08:56 -04:00
Brad King
0e48bf825d
Merge topic 'patch-FindTIFF-version'
...
8076414d2d FindTIFF: Add TIFF_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11021
2025-08-06 09:48:09 -04:00
Brad King
ddb014d0aa
Merge topic 'patch-FindOpenSSL-version'
...
5503235b4d FindOpenSSL: Add OpenSSL_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11020
2025-08-06 09:45:48 -04:00
Brad King
142ae708fb
Merge topic 'patch-FindGettext-version'
...
6903ba415f FindGettext: Add Gettext_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11019
2025-08-06 09:43:36 -04:00
Brad King
8d79307408
Merge topic 'patch-FindDoxygen-version'
...
15ffe27752 FindDoxygen: Add Doxygen_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11018
2025-08-06 09:37:50 -04:00
Peter Kokot
8076414d2d
FindTIFF: Add TIFF_VERSION
...
This deprecates the TIFF_VERSION_STRING result variable.
Issue: #27088
2025-08-05 06:25:34 +02:00
Peter Kokot
5503235b4d
FindOpenSSL: Add OpenSSL_VERSION
...
This deprecates the OPENSSL_VERSION result variable.
Issue: #27088
2025-08-04 20:58:49 +02:00
Peter Kokot
6903ba415f
FindGettext: Add Gettext_VERSION
...
This deprecates the GETTEXT_VERSION_STRING result variable.
Issue: #27088
2025-08-04 20:56:07 +02:00
Peter Kokot
15ffe27752
FindDoxygen: Add Doxygen_VERSION
...
This deprecates the DOXYGEN_VERSION result variable.
Issue: #27088
2025-08-04 20:54:32 +02:00
Peter Kokot
d4c3a6595c
FindArmadillo: Add Armadillo_VERSION
...
This deprecates the following result variables:
* ARMADILLO_VERSION_STRING
* ARMADILLO_VERSION_MAJOR
* ARMADILLO_VERSION_MINOR
* ARMADILLO_VERSION_PATCH
* ARMADILLO_VERSION_NAME (added the Armadillo_VERSION_NAME as an
alternative).
When Armadillo is found in config mode, the `Armadillo_VERSION` is
already set automatically:
find_package(Armadillo CONFIG)
Issue: #27088
2025-08-04 20:50:01 +02:00
Marc Chevrier
8af64914d6
set/unset commands: add CACHE{variable} syntax support
...
Add the support of CACHE{variable} syntax to enable:
* better consistency with other commands which use this syntax
* more flexibility regarding cache variable options
2025-08-04 20:46:23 +02: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
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
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
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
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
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
Peter Kokot
58d61f6846
FindFreetype: Add Freetype_VERSION
...
This deprecates the FREETYPE_VERSION_STRING result variable.
Issue: #27088
2025-07-31 20:55:15 +02:00
Peter Kokot
1e61580bd3
FindEXPAT: Add EXPAT_VERSION
...
This deprecates the EXPAT_VERSION_STRING result variable, which was
previously not documented.
Issue: #27088
2025-07-31 20:48:54 +02:00
Brad King
43a86ba605
Merge topic 'patch-FindPostgreSQL-version'
...
4d4d10e95d FindPostgreSQL: Add PostgreSQL_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com >
Merge-request: !10987
2025-07-31 11:02:49 -04:00
Brad King
6d265917af
Merge topic 'patch-FindALSA-version'
...
5df1d3f036 FindALSA: Add ALSA_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com >
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com >
Merge-request: !10986
2025-07-31 10:57:05 -04:00
Brad King
04abde5ee3
Merge topic 'fix-config-genex'
...
8ac826a5f2 GenEx: Fix evaluation of $<CONFIG> on imported targets
9b36e49ad9 cmGeneratorExpressionNode: Remove dead code from ConfigurationTestNode
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10940
2025-07-31 10:52:56 -04:00
Benjamin Buch
8797912e4d
cmake -E: Add copy_if_newer and copy_directory_if_newer
...
Fixes : #24923
2025-07-31 10:55:59 +02:00
Matthew Woehlke
8ac826a5f2
GenEx: Fix evaluation of $<CONFIG> on imported targets
...
The historic implementation of `$<CONFIG>` had some errors that could
result in multiple configurations matching. First, it always considered
the configuration of the consuming target, even if a consumed imported
target selected a different configuration. Second, it matched the entire
list of `MAP_IMPORTED_CONFIG_<CONFIG>` configurations, even if none of
those were actually selected. The latter in particular is redundant at
best, as we also consider the selected configuration of an imported
target, which is the correct configuration to match for imported
targets. Refactor the implementation so that only one configuration is
considered.
Fixes : #23660
Issue: #27022
2025-07-30 15:12:03 -04:00
Brad King
1c3300998f
Merge topic 'short-object-names'
...
8180ecad9b autogen: support the `SHORT` intermediate dir strategy
f97d1bf7d8 Visual Studio: support shortened object filenames
a3a190c006 cmcmd: also forward rsp files in `.o` directories
3f33a5387a Makefiles: support shortened object filenames
b121adaa04 Makefiles: pass the target name to `cmake -E cmake_depends`
851e07fda3 Ninja: support short object directories
050f891d81 Tests: choose an explicit FULL strategy in tests expecting it
cce31527f8 Tests/ObjectLibrary: add shortened path tests
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !10833
2025-07-30 11:36:21 -04:00
Peter Kokot
4d4d10e95d
FindPostgreSQL: Add PostgreSQL_VERSION
...
This deprecates the PostgreSQL_VERSION_STRING result variable.
Issue: #27088
2025-07-30 03:02:52 +02:00