Martin Duffy
95dc40d8a8
Experimental: Remove Instrumentation experimental gating
...
Fixes : #27348
2026-02-05 14:05:42 -05:00
Christoph Grüninger
231b336ad2
Help: Fix typo in install documentation
2026-02-05 08:02:05 +01:00
Christoph Grüninger
01ea8dc368
Help: Correct use of dots ([...]) in install command signatures
...
Only the short form of command have the [...] at
the end to indicate further possible arguments.
Repeating of a block is indicated by ..., not [...].
2026-02-05 07:57:32 +01:00
Peter Kokot
4cde2dd45b
enable_testing: Update docs
...
- Described where this command shouldn't be called.
- Added examples section.
- Reworded few sentences.
Issue: #27564
2026-02-04 17:32:54 +01:00
Brad King
9e5d338dd9
Merge topic 'lang-link-flags'
...
98f9874703 cmake: Add per-language link flags for all target types
63858fc3e0 Tests: Factor out LINKER: reference file generation
399288871e cmLocalGenerator: Factor out link flag parsing
82913923cd try_compile: Reflow comments per `clang-format`
7b4b556e2d Help: Fix description of `CMAKE_*_LINKER_FLAGS` variables
29b1d0baa9 Help/try_compile: Remove extraneous `versionadded` policy note
5ecee0db7b cmLocalGenerator: De-duplicate static linker flags lookup
bc1847c70b cmLocalGenerator: De-duplicate target property link flags lookup
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !11611
2026-02-03 11:22:36 -05:00
Brad King
98f32902a5
Merge topic 'doc-marco-arguments'
...
69456b012a Help: Clarify argument handling for macros
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11641
2026-02-03 10:39:20 -05:00
Christoph Grüninger
69456b012a
Help: Clarify argument handling for macros
...
Distinguish from similar documentation of function
2026-02-02 10:36:59 -05:00
Tyler Yankee
3ec3bc1c7d
cmake_host_system_information: Add VENDOR_STRING
...
Issue: #27529
2026-02-02 07:47:42 -05:00
Tyler Yankee
a6c31e0c54
cmake_host_system_information: Add VENDOR_ID
...
Issue: #27529
2026-02-02 07:47:41 -05:00
Tyler Yankee
981ee81563
cmake_host_system_information: Add PROCESSOR_CLOCK_FREQUENCY
...
Issue: #27529
2026-02-02 07:47:41 -05:00
Tyler Yankee
352be6b3d1
cmake_host_system_information: Add PROCESSOR_CACHE_SIZE
...
Also add HAS_L1_CACHE to check for availability.
Issue: #27529
2026-02-02 07:47:39 -05:00
Tyler Yankee
a84a5214cc
cmake_host_system_information: Add PROCESSOR_APIC_ID
...
Also add HAS_APIC to check for availability.
Issue: #27529
2026-02-02 07:47:29 -05:00
Tyler Yankee
98f9874703
cmake: Add per-language link flags for all target types
...
Previously, `CMAKE_<LANG>_LINK_FLAGS` was an undocumented variable used
for linking executables only. Re-spell that variable mirroring the
existing spellings for shared and module libraries, and add policy
CMP0210 to preserve compatibility.
Then, repurpose `CMAKE_<LANG>_LINK_FLAGS` to provide a variable to be
used for per-language link flags for all target types, along with a
per-configuration variant. These are added to the `<LINK_FLAGS>` rule
placeholder in the generators.
Fixes : #21934
Relates: #25620
Co-authored-by: Brad King <brad.king@kitware.com >
2026-01-31 19:37:09 -05:00
Tyler Yankee
887a4cbb30
cmake_host_system_information: Add MODEL_NAME
...
Issue: #27529
2026-01-31 15:51:43 -05:00
Tyler Yankee
ea05d94d43
cmake_host_system_information: Add MODEL_ID
...
Issue: #27529
2026-01-31 15:51:43 -05:00
Tyler Yankee
fef72791bf
cmake_host_system_information: Add FAMILY_ID
...
Issue: #27529
2026-01-31 15:51:43 -05:00
Brad King
4efe6d3a18
Merge topic 'cps-modules'
...
3771471310 CPS: Support C++20 modules
b080922be6 cmake-cxxmodules: Note config limitations
e4cbf1c153 cmCxxModuleMetadata: Update PopulateTarget
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !11633
2026-01-30 11:35:19 -05:00
Tyler Yankee
29b1d0baa9
Help/try_compile: Remove extraneous versionadded policy note
...
The additional information is nice, but is inconsistent with the other
policies mentioned in that section, which do not have such directives.
2026-01-29 15:30:57 -05:00
Vito Gamberini
3771471310
CPS: Support C++20 modules
...
Modify the PackageInfo exporters and commands to support C++20 modules
via the collator-generated module manifest.
Fixes #27548
2026-01-29 13:26:35 -05:00
Marc Chevrier
4113364c49
FILE_SET: properties management
...
Fixes : #27307
2026-01-27 18:15:26 +01:00
Brad King
ec4af051eb
Merge topic 'doc-file-sys-commands'
...
d8c6bbe693 Help: Improve formatting for `cmake_host_system_information`
307c2240ad Help: Improve command formatting atop `file` page
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11603
2026-01-19 09:29:28 -05:00
Brad King
f71894a17d
Merge topic 'fix-archive-path-traversal'
...
03f19aa4ea cmSystemTools: Fix path traversal vulnerability in archive extraction
be2ac223b0 cmSystemTools: Factor out libarchive extraction flags
9c408b844b Tests/RunCMake/CMP0135: Avoid paths with .. components in test archive
6015ef807d cmake -E tar: Improve error message formatting
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11564
2026-01-19 09:24:40 -05:00
Leslie P. Polzer
03f19aa4ea
cmSystemTools: Fix path traversal vulnerability in archive extraction
...
Add security flags to libarchive extraction to prevent path traversal
(Zip Slip) and absolute path attacks:
- ARCHIVE_EXTRACT_SECURE_NODOTDOT: Block ".." path components
- ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS: Block absolute paths
- ARCHIVE_EXTRACT_SECURE_SYMLINKS: Block symlinks escaping extract dir
This hardens both `cmake -E tar` and `file(ARCHIVE_EXTRACT)` against
malicious archives that attempt to write files outside the intended
extraction directory.
2026-01-16 08:54:07 -05:00
Tyler Yankee
d8c6bbe693
Help: Improve formatting for cmake_host_system_information
...
Use the signature directive to improve formatting of links to each
sub-command, especially `QUERY WINDOWS_REGISTRY`.
2026-01-15 20:30:17 -05:00
Tyler Yankee
307c2240ad
Help: Improve command formatting atop file page
...
Amend the references to the `file` page from commit c575d84555 (Help:
Use signature directive for `cmake_path` command, 2025-10-08).
2026-01-15 20:26:16 -05:00
Brad King
093b6974f1
Merge topic 'export-refactor-arguments'
...
254916dfc6 export: Make PACKAGE_INFO, SBOM sub-commands
a121e5d49e export: Reset CPS export experimental gate
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !11584
2026-01-14 13:00:48 -05:00
Robert Maynard
bf4a63c7b0
Help: Document that enable_language cannot be used in block()
...
Issue: #27389
2026-01-13 11:16:54 -05:00
Matthew Woehlke
254916dfc6
export: Make PACKAGE_INFO, SBOM sub-commands
...
Change the interface of the `export` command so that `PACKAGE_INFO` and
`SBOM` are proper, first-level sub-commands, rather than being implemented via
`export(EXPORT ... (PACKAGE_INFO|SBOM) ...)`. This brings consistency with the
`install` command and also simplifies argument parsing.
Update the documentation and test cases accordingly. Some of the
argument handling test cases are now rather gratuitous, and are removed,
which also improves consistency with the `install` tests.
2026-01-12 14:05:27 -05:00
Brad King
da84370cff
Merge topic 'sbom-export-generators'
...
8ec5a595cd cmSbom: Add documentation for `install(SBOM)` and `export(SBOM)`
83671f2d87 cmSbom: Add `export(SBOM)` build generators and unit tests
f2027a886b cmSbom: Add `install(SBOM)` generator and unit tests
dcadde3662 CPS: Refactor ForbidGeneratorExpressions into cmGeneratorExpression
bcb6f689a4 cmExportInstallFileGenerator: Allow overriding of CheckInterfaceDirs
6d6c37c90d cmPackageInfoArguments: Extract common values
8c6676b2ea cmFindPackage: Fix PACKAGE_VERSION not being set when rebuilding
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !11396
2025-12-18 10:13:32 -05:00
AJIOB
e347176424
file(ARCHIVE_CREATE): Add controls for zip and 7z compression method/level
...
Fixes : #27463
2025-12-17 14:38:30 -05:00
Taylor Sasser
8ec5a595cd
cmSbom: Add documentation for install(SBOM) and export(SBOM)
2025-12-17 14:35:12 -05:00
Kyle Edwards
1eb5ea3a64
Help(string(JSON)): Clarify that some modes can have zero members/indices
2025-12-16 11:14:16 -05:00
Kyle Edwards
06e6f1e69f
string(JSON): Add STRING_ENCODE mode
2025-12-16 10:11:30 -05:00
Kyle Edwards
15973ff247
string(JSON): Add GET_RAW mode
2025-12-16 10:00:29 -05:00
AJIOB
94ae247d44
cli tar: support different algorithms for zip & 7z
...
Fixes : #27443
2025-12-11 12:00:31 -05:00
Brad King
9149ac3f37
Merge topic 'fix-27420'
...
4fdfa0db1a file(ARCHIVE_CREATE): support multithreading compression
cbf71b21b2 cli tar: support multithreading compression
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !11460
2025-12-05 09:04:58 -05:00
Brad King
e4737d1c4a
Merge topic 'cli-tar-lzma'
...
5b87a5d53e cli tar: implement LZMA support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !11465
2025-12-03 16:26:20 -05:00
AJIOB
4fdfa0db1a
file(ARCHIVE_CREATE): support multithreading compression
...
Relates: #27420
2025-12-03 02:45:30 -05:00
Brad King
8fd9ebea6b
Merge topic 'doc-policy-max'
...
7323fbd65e Help: Be more explicit about what `...<policy_max>` does not mean
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11438
2025-12-02 15:52:30 -05:00
ferdymercury
7323fbd65e
Help: Be more explicit about what ...<policy_max> does not mean
...
Also use `<policy_max>` more consistently in signatures.
2025-12-02 15:25:47 -05:00
AJIOB
5b87a5d53e
cli tar: implement LZMA support
...
Fixes : #27433
2025-12-02 10:44:49 +03:00
HannaWAR
2628c52e04
source_group: add genex support
...
Fixes : #19813
2025-11-24 21:08:46 +03:00
Brad King
bb877abc93
Merge topic 'doc-string-xref'
...
510d81c7bc Help: Avoid reST named references in string(JSON) synopsis
6c0f37546f Help: Improve string(JSON) synopsis document source readability
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11426
2025-11-18 09:05:18 -05:00
Brad King
510d81c7bc
Help: Avoid reST named references in string(JSON) synopsis
...
Also revert commit 9702a01dc9 (Help: string(LENGTH): Fix synopsis link
to command description, 2023-12-30, v3.28.2~23^2). It was only needed
to avoid re-using a named reference that we've now removed.
Issue: #25546
2025-11-17 16:31:37 -05:00
Brad King
6c0f37546f
Help: Improve string(JSON) synopsis document source readability
...
Avoid spaces in signature target names.
2025-11-17 16:31:37 -05:00
Brad King
42d94ff876
Merge topic 'file-GET_RUNTIME_DEPENDENCIES-matching'
...
bf3f69834d file(GET_RUNTIME_DEPENDENCIES): Normalize paths before matching
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !11351
2025-11-15 09:03:56 -05:00
Brad King
a5328ab279
Merge topic 'doc-typos-cleanup-4.2'
...
730cad9cb6 Help: Fix typos and formatting for 4.2 release
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11418
2025-11-14 09:49:18 -05:00
hanna.rusakovich
bf3f69834d
file(GET_RUNTIME_DEPENDENCIES): Normalize paths before matching
...
Regex-based filtering should not have to account for slash differences.
Add policy CMP0207 for compatibility.
Fixes : #26202
2025-11-14 17:23:26 +03:00
Craig Scott
730cad9cb6
Help: Fix typos and formatting for 4.2 release
2025-11-14 16:29:51 +11:00
Matthew Woehlke
34343922a5
install: Add ability to generate CPS from install(EXPORT)
...
Add the ability to generate CPS package information when install(EXPORT)
is used. This relies on additional information to be passed to CMake,
and is intended as a way of getting CPS out of existing projects without
needing to make changes to the projects' CMakeLists.txt. (Particularly,
this feature is intended for package distributors, not project authors.)
2025-11-11 11:51:58 -05:00