Commit Graph
9180 Commits
Author SHA1 Message Date
Brad King 3990abf9fb Merge topic 'doc-cmake_path-out-var'
6592b8ac14 Help/cmake_path: Clarify output variable behavior

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11681
2026-02-13 09:57:04 -05:00
Brad King eec5d93813 Merge topic 'update_sbom_docs_gen_exp'
54ac3937b6 Help: Warn about generator expressions in install(SBOM) docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11685
2026-02-13 09:52:39 -05:00
Brad King 84aff9588f Merge topic 'remove-cps-experimental-gate'
f5c515cbf2 CPS: Remove experimental gate (mostly)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11683
2026-02-13 09:51:24 -05:00
Tyler Yankee 6592b8ac14 Help/cmake_path: Clarify output variable behavior
Add explicit cross-references for commands which optionally take an
output variable (otherwise modifying their input in-place) for clarity.

Note that `cmake_path` should not be used to modify variables reserved
by CMake.

Improve references to the "CMake-style" semicolon-separated lists, and
apply those corresponding changes to the `file` command page.
2026-02-12 12:50:51 -05:00
Tom Osika 54ac3937b6 Help: Warn about generator expressions in install(SBOM) docs 2026-02-12 12:07:47 -05:00
Brad King cf90886f8b Merge topic 'help-cxxmodules-import-std-no-vs'
f038117687 Help/cmake-cxxmodules: note that VS generators do not support `import std`

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11682
2026-02-12 11:08:02 -05:00
Matthew Woehlke f5c515cbf2 CPS: Remove experimental gate (mostly)
Remove basic CPS import and export from 'experimental' status. Update
documentation and tests accordingly.

Note that mapped exports (CMAKE_EXPERIMENTAL_MAPPED_PACKAGE_INFO) are
still experimental.
2026-02-11 16:10:29 -05:00
Brad King 9d2fc99a95 Merge topic 'cmake-locale-query'
b02ae60a76 cmake_host_system_information: Add query for the locale's charset

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11648
2026-02-11 12:41:12 -05:00
Ben Boeckel f038117687 Help/cmake-cxxmodules: note that VS generators do not support import std
Closes: #27595
2026-02-11 12:13:17 -05:00
Brad King 0aa7e258d4 Merge topic 'doc-ctest-link'
01a47a790b Help: Link `CTEST_*` variables to dashboard client
12a0ebe96a Help/CTest: Improve formatting and grammar

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11677
2026-02-11 12:05:29 -05:00
Brad King b02ae60a76 cmake_host_system_information: Add query for the locale's charset
Issue: #27562
2026-02-11 11:56:05 -05:00
Tyler Yankee 01a47a790b Help: Link CTEST_* variables to dashboard client 2026-02-10 09:59:45 -05:00
Brad King e686b86649 Merge topic 'import-std-no-experimental'
70c1f0f43d Experimental: Remove import std experimental gate

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11657
2026-02-08 09:18:01 -05:00
Brad King a59a6c2ca0 Merge topic 'rust-support'
5c1b0a6b7e Rust: Add experimental support with Ninja
3fe1e45584 ci: Add rustc to Fedora base image

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Michał Walenciak <michalwalenciak@gmail.com>
Merge-request: !11389
2026-02-07 09:30:19 -05:00
Brad King 39a0fb289d Merge topic 'doc/install-remove-superfluous-dots'
231b336ad2 Help: Fix typo in `install` documentation
01ea8dc368 Help: Correct use of dots ([...]) in `install` command signatures

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11659
2026-02-07 09:28:42 -05:00
Brad King 7f01b3fe89 Merge topic 'doc-sf-prop-labels-xref'
39c6406dfe Help/prop_sf/LABELS: link to the `LABELS` target property

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11665
2026-02-07 09:25:39 -05:00
Vito Gamberini 70c1f0f43d Experimental: Remove import std experimental gate
Fixes: #27571
2026-02-07 09:03:43 -05:00
Ayush Singh 5c1b0a6b7e Rust: Add experimental support with Ninja
The TU for Rust is a crate, not per-source.  `rustc` expects entry file
to TU as input, and cannot work with object files.  So we need to have
one-step build/link in most cases, similar to what old Swift was doing.

Issue: #25492
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2026-02-06 11:32:56 -05:00
Brad King d979f3df74 Merge topic 'fileapi-interface-sources'
b8af7837b3 fileapi: Add interfaceSources to the target codemodel replies

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11655
2026-02-06 10:37:20 -05:00
Ben Boeckel 39c6406dfe Help/prop_sf/LABELS: link to the LABELS target property 2026-02-06 09:09:00 -05:00
Martin Duffy 95dc40d8a8 Experimental: Remove Instrumentation experimental gating
Fixes: #27348
2026-02-05 14:05:42 -05:00
Brad King 713c36bc0e Merge topic 'instrumentation-project-name'
ffff6576b4 instrumentation: Add project field to cmake content files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11650
2026-02-05 13:50:56 -05:00
Brad King 8af7c1c0c3 Merge topic 'patch-enable-testing'
4cde2dd45b enable_testing: Update docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11656
2026-02-05 13:21:28 -05:00
Brad King 37614c8f79 Merge topic 'cmd-version-json'
39a3915022 cmd: implement json version output
89fd18b48e nghttp2: provide common cm3p headers
31bb76eafd Utilities: add lost openssl dependency
26cdd956ac kwiml: provide common cm3p version header
4952dc9d4a Merge branch 'upstream-KWIML' into cmd-version-json
b41743ddcb KWIML 2025-08-05 (2eae04db)
25c05b0bac kwiml: Update script to get version header

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11630
2026-02-05 13:11:08 -05:00
Craig Scott b8af7837b3 fileapi: Add interfaceSources to the target codemodel replies
Fixes: #27489
2026-02-05 21:20:48 +09: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 46c3f6c2b0 Merge topic 'doc-exports-def'
3400248c1a Help: Add documentation for `<target>_EXPORTS` compile definition

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11644
2026-02-03 10:40:22 -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
Martin Duffy ffff6576b4 instrumentation: Add project field to cmake content files 2026-02-03 09:15:49 -05:00
AJIOB 39a3915022 cmd: implement json version output 2026-02-03 09:34:23 +03:00
Ralf Habacker 3400248c1a Help: Add documentation for <target>_EXPORTS compile definition
Fixes: #27554
2026-02-02 11:07:01 -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 664d6dde4a instrumentation: Add model name to static system info
Add this field for consistency with `cmake_host_system_information`
options and data uploaded to CDash.
2026-02-02 07:47:43 -05:00
Tyler Yankee 7b7fcbfbcd Help/instrumentation: Add xref to cmake_host_system_information
Additionally, remove a spurious colon added by commit bf52fbfbc4
(instrumentation: Add Google trace output, 2025-08-28).
2026-02-02 07:47:43 -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 YankeeandBrad King 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 c838c1ab90 Merge topic 'preset-test-jobs'
23615b7ca4 presets: Allow jobs to match `ctest -j` with no value
71ff5a9d6f presets: Disallow negative values for "jobs" fields
c2b773cb97 cmake: Prefer named constant for jobs
68bd63c856 Help/presets: Document behavior for unbounded parallelism
25641fe8d5 Help/presets: Document behavior for native build tool parallelism

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex Overchenko <aleksandr9809@gmail.com>
Merge-request: !11508
2026-01-30 11:37:49 -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
Brad King 4676ba1643 Merge topic 'GenEx-FILE_SET_PROPERTY'
209d86c5fe GenEx FILE_SET_PROPERTY

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11636
2026-01-30 11:03:16 -05:00
Brad King dd0b44ef31 Merge topic 'inst-sys-checks'
98eca860d4 instrumentation: Null unknown static system info
7867a36fdc instrumentation: Run system checks for static system info

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11627
2026-01-30 10:04:30 -05:00