Commit Graph

7609 Commits

Author SHA1 Message Date
Juan Ramos
197cb419d1 add_custom_command: Add CODEGEN support
By specifying CODEGEN as an argument to add_custom_command the
custom command will be added to a codegen build target.

The intent is to provide a convenient way for users to get
their generated files without having to build the whole project.

This can be helpful for code analysis tools which can be useful
for IDEs and CI.
2024-07-01 12:02:49 -04:00
Brad King
f879d3a33f Merge topic 'preset-comments'
7d2cc6ece6 presets: Allow comments in presets files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9608
2024-06-26 08:45:17 -04:00
Brad King
a20377e41a Merge topic 'cpack-debian-multiarch'
71c631c435 CPack/DEB: Add Multi-Arch support
55524c48a4 CPack/DEB: Add Multi-Arch support
a022705a2e Tests/RunCMake/CPack: Improve README

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9609
2024-06-26 08:44:02 -04:00
Brad King
1736e37740 Merge topic 'issue-26041-filemakedirectory-result-optional-argument'
95323c90a1 file(MAKE_DIRECTORY): Add optional RESULT keyword to capture failure.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !9604
2024-06-26 08:39:31 -04:00
Aliaksandr Averchanka
7d2cc6ece6 presets: Allow comments in presets files
Co-authored-by: Kanaiym <abdigak@clarkson.edu>
Fixes: #22791
2024-06-24 15:42:46 -04:00
Brad King
d395fb38e5 Merge topic 'apple-framework-bundle-name'
8a06f173d9 Apple: Add CFBundleName to framework Info.plist files
7c1a18655b Tests/RunCMake/Framework: Improve failure messages

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Jason Juang <jasjuang@gmail.com>
Merge-request: !9610
2024-06-24 09:28:44 -04:00
Brad King
4cc832f797 Merge topic 'link-feature-attributes-stabilization'
576567f028 Link feature attributes: stabilization
5617c34c31 Libraries processing: update configuration wording

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9607
2024-06-24 09:22:48 -04:00
Asit Dhal
95323c90a1 file(MAKE_DIRECTORY): Add optional RESULT keyword to capture failure.
Fixes: #26041
2024-06-24 02:20:43 +02:00
Robert Schuster
55524c48a4 CPack/DEB: Add Multi-Arch support
Add support for Multi-Arch in control files of Debian packages.
Valid values: same, foreign, allowed

Fixes: #21445
2024-06-21 12:27:50 -04:00
Brad King
9c7f90fbad Merge topic 'doc-cpack-nuget'
a08faa1a2a Help: Mention CPack/NuGet additions in the 3.30 release notes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9613
2024-06-21 10:41:16 -04:00
Marc Chevrier
576567f028 Link feature attributes: stabilization
* enhance OVERRIDE handling
* Update wording
2024-06-21 11:18:20 +02:00
Alex Turbov
a08faa1a2a Help: Mention CPack/NuGet additions in the 3.30 release notes 2024-06-20 11:52:04 -04:00
Brad King
8a06f173d9 Apple: Add CFBundleName to framework Info.plist files
Fixes: #26046
2024-06-20 10:33:07 -04:00
Brad King
294be9b3d4 Merge topic 'doc-cpack-nuget'
dbdca56555 Help: CPack/NuGet avoid deprecated variables in the usage example
d06a39dd59 Help: CPack/NuGet add `:Supported:` to some variables
a6a8212ba2 Help: CPack/NuGet add description to the added variables
039bf0f3f3 Help: CPack/NuGet fix `versionadded` position
391e339926 Help: CPack/NuGet add deprecation notes according to the current spec
4e11de312b Help: Reorder variables as they mentioned in the official spec

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9605
2024-06-19 08:53:12 -04:00
Brad King
68243b7c0b Merge topic 'doc-cpack-nuget' into release-3.30
dbdca56555 Help: CPack/NuGet avoid deprecated variables in the usage example
d06a39dd59 Help: CPack/NuGet add `:Supported:` to some variables
a6a8212ba2 Help: CPack/NuGet add description to the added variables
039bf0f3f3 Help: CPack/NuGet fix `versionadded` position
391e339926 Help: CPack/NuGet add deprecation notes according to the current spec
4e11de312b Help: Reorder variables as they mentioned in the official spec

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9605
2024-06-19 08:53:10 -04:00
Brad King
a2e6b59f2d Merge branch 'release-3.29' 2024-06-17 15:20:23 -04:00
Brad King
c3821911f8 Merge branch 'release-3.29' into release-3.30 2024-06-17 15:19:47 -04:00
Brad King
cdc901797a CMake 3.29.6 2024-06-17 14:49:43 -04:00
Brad King
8065119e59 Merge topic 'doc-link-library-features'
c4fdf01a84 Help: Improve link library feature properties docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9599
2024-06-17 14:41:00 -04:00
Alex Turbov
dbdca56555 Help: CPack/NuGet avoid deprecated variables in the usage example 2024-06-17 11:57:18 -04:00
Alex Turbov
d06a39dd59 Help: CPack/NuGet add :Supported: to some variables
Some features of NuGet require relatively fresh versions.
Mention that versions as they are specified in the upstream spec.
2024-06-17 11:47:35 -04:00
Alex Turbov
a6a8212ba2 Help: CPack/NuGet add description to the added variables 2024-06-17 11:47:35 -04:00
Alex Turbov
039bf0f3f3 Help: CPack/NuGet fix versionadded position
It should be right after `.. variable::`
2024-06-17 11:47:35 -04:00
Alex Turbov
391e339926 Help: CPack/NuGet add deprecation notes according to the current spec 2024-06-17 11:47:35 -04:00
Alex Turbov
4e11de312b Help: Reorder variables as they mentioned in the official spec
Also, group 'em into sub-sub-sections (same as in the upstream doc).
See also, https://learn.microsoft.com/en-us/nuget/reference/nuspec
2024-06-17 11:47:35 -04:00
Craig Scott
c4fdf01a84 Help: Improve link library feature properties docs 2024-06-15 15:45:38 +10:00
Brad King
f0963e45b6 Merge topic 'doc-cleanup'
6636b11997 Help: Minor grammar and formatting cleanup
c2390f7676 Help: Fix nuget example with unwanted comment and bad use of rst link

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9600
2024-06-14 09:28:19 -04:00
Craig Scott
6636b11997 Help: Minor grammar and formatting cleanup 2024-06-14 16:19:28 +10:00
Craig Scott
c2390f7676 Help: Fix nuget example with unwanted comment and bad use of rst link 2024-06-14 16:17:49 +10:00
Brad King
024d503f4c Merge topic 'fc-cmp0168-fresh'
9299cbbdb4 FetchContent: Force cmake --fresh to re-execute direct population steps
e82e2c38c1 Tests: RunCMake.FetchContent should not always force _deps removal
f97b25ec4b Tests: Fix -direct variants of FetchContent tests using wrong files
11b684c449 FetchContent: Fix typos in stamp/step file names
a02eec4a9f FetchContent,ExternalProject: Fix extra semicolons in step commands

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9589
2024-06-10 11:50:41 -04:00
Craig Scott
9299cbbdb4 FetchContent: Force cmake --fresh to re-execute direct population steps
Issue: #25468
2024-06-07 18:12:12 +10:00
Brad King
bf645e0577 Merge topic 'doc-preset-specific-macros'
1ea780ea7c Help: Clarify preset-specific macros

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9587
2024-06-06 09:36:49 -04:00
Brad King
29390cd231 Merge topic 'doc-preset-specific-macros' into release-3.30
1ea780ea7c Help: Clarify preset-specific macros

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9587
2024-06-06 09:36:48 -04:00
Cristian Le
1ea780ea7c Help: Clarify preset-specific macros
Closes: #26030
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
2024-06-06 08:51:16 -04:00
Brad King
89ec09e840 Merge topic 'doc-testing'
8a688e556e Help/dev: Add a CMake Testing Guide
7cc124d4b5 Help/dev: Move integration testing to a more-specific document
d9ab1fb5da Help/dev: Fix formatting in CMake Documentation Guide
aa3fffa4bb README: Drop outdated link on running CMake

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Juan Ramos <juan.ramos@kitware.com>
Merge-request: !9576
2024-06-06 08:45:18 -04:00
Brad King
60da7cb84e Merge topic 'doc-add_subdirectory-EXCLUDE_FROM_ALL'
2449c04d8d Help: improve docs for the EXCLUDE_FROM_ALL directory property

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9497
2024-06-06 08:41:59 -04:00
Brad King
97328b05c3 Merge topic 'doc-add_subdirectory-EXCLUDE_FROM_ALL' into release-3.30
2449c04d8d Help: improve docs for the EXCLUDE_FROM_ALL directory property

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9497
2024-06-06 08:41:58 -04:00
Brad King
9cfc2564d1 Merge topic 'cpack-wix-scope-default'
bad894b53e Merge branch 'backport-3.29-cpack-wix-scope-default'
614100dbf6 CPack/WiX: Restore default (missing) InstallScope from 3.28 and lower
0167089484 CPack/WiX: Restore default (missing) InstallScope from 3.28 and lower

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9586
2024-06-06 08:37:14 -04:00
Brad King
bad894b53e Merge branch 'backport-3.29-cpack-wix-scope-default' 2024-06-05 14:02:10 -04:00
Brad King
614100dbf6 CPack/WiX: Restore default (missing) InstallScope from 3.28 and lower
In commit 60661f6770 (CPack/WiX: Make InstallScope configurable,
2023-11-07, v3.29.0-rc1~413^2) the `CPACK_WIX_INSTALL_SCOPE` default was
set to `perMachine`.  While installers created with `perMachine` have
better behavior on their own than installers created without any
`InstallScope`, they do not cleanly convert existing installations on
updates.

Fixes: #26029
2024-06-05 14:01:14 -04:00
Brad King
0167089484 CPack/WiX: Restore default (missing) InstallScope from 3.28 and lower
In commit 60661f6770 (CPack/WiX: Make InstallScope configurable,
2023-11-07, v3.29.0-rc1~413^2) the `CPACK_WIX_INSTALL_SCOPE` default was
set to `perMachine`.  While installers created with `perMachine` have
better behavior on their own than installers created without any
`InstallScope`, they do not cleanly convert existing installations on
updates.

Fixes: #26029
2024-06-05 13:47:36 -04:00
Brad King
8a688e556e Help/dev: Add a CMake Testing Guide
Document how developers working on CMake itself may run the test suite
locally.

Fixes: #26001
2024-06-05 12:58:47 -04:00
Brad King
7cc124d4b5 Help/dev: Move integration testing to a more-specific document
Avoid breaking existing links to `Help/dev/testing.rst` by keeping
the document with minimal text to direct readers to the new one.
2024-06-05 12:58:47 -04:00
Brad King
d9ab1fb5da Help/dev: Fix formatting in CMake Documentation Guide 2024-06-05 12:58:47 -04:00
Brad King
2f1da5d0db Begin post-3.30 development 2024-06-05 11:47:52 -04:00
Brad King
22e4fe3c07 Help: Drop development topic notes to prepare release
Release versions do not have the development topic section of
the CMake Release Notes index page.
2024-06-05 11:43:56 -04:00
Brad King
01436f6edd Help: Organize and revise 3.30 release notes
Add section headers similar to the 3.29 release notes and move each
individual bullet into an appropriate section.  Revise a few bullets.

Drop the `CXX_MODULE_STD` release note since it is an experimental
feature.
2024-06-05 10:28:23 -04:00
Brad King
d5402283d8 Help: Consolidate 3.30 release notes
Run the `Utilities/Release/consolidate-relnotes.bash` script to move
notes from `Help/release/dev/*` into `Help/release/3.30.rst`.
2024-06-05 09:56:04 -04:00
Brad King
a67bb7f488 Merge topic 'FindPython-free-threaded-python'
9a0dee7257 FindPython: Add support for free threaded python
4178ab928f FindPython: Fix spelling error

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9578
2024-06-05 09:34:03 -04:00
Marc Chevrier
9a0dee7257 FindPython: Add support for free threaded python
Fixes: #26016
2024-06-04 18:14:35 +02:00