Commit Graph

74048 Commits

Author SHA1 Message Date
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 9cfd8d379c Merge topic 'elf-large'
e47f7c8af4 cmELF: Avoid out-of-bounds access on zero-section ELF binary
5954145e0d cmELF: Handle error loading first section header
698c762d40 cmELF: Use size_t for container size

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11637
2026-01-30 11:18:51 -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 13fef30cfa Merge topic 'fix-AUTOGEN_BETTER_GRAPH_MULTI_CONFIG-rcc-paths'
d05bb5e3c7 Autogen: Fix AUTOGEN_BETTER_GRAPH_MULTI_CONFIG with VS generators
33ea2fed94 ci: Tell valgrind to skip Qt Autogen test binaries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11626
2026-01-30 10:09:48 -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
Kitware Robot 788800810b CMake Nightly Date Stamp 2026-01-30 00:08:41 -05:00
Tyler Yankee 23615b7ca4 presets: Allow jobs to match ctest -j with no value
Allow an empty string for the "jobs" field of test presets to mirror
the `ctest --parallel` option without a number specified, which
corresponds to setting the parallelism to the maximum of the number of
processors or 2.

Issue: #27070
2026-01-29 16:25:08 -05:00
Tyler Yankee 71ff5a9d6f presets: Disallow negative values for "jobs" fields
Jobs should never be negative, to mirror the behavior on the command
line for both `cmake --build` and `ctest`. This fixes unintended
behaviors where "-1" would lead to `cmake::NO_BUILD_PARALLEL_LEVEL`
being used for build presets and an integer overflow occurring for test
presets.

Bump to presets version 11 to signify the change.
2026-01-29 16:25:07 -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
Vito Gamberini b080922be6 cmake-cxxmodules: Note config limitations
Today, CMake doesn't support configuration-agnostic module maps. For
CMakeConfig exports, this is irrelevant. For CPS, this may possibly
cause friction with other build systems. Briefly note that we don't
support this until we build a solution.
2026-01-29 13:07:18 -05:00
Tyler Yankee c2b773cb97 cmake: Prefer named constant for jobs
This improves readability.
2026-01-29 11:33:27 -05:00
Tyler Yankee 68bd63c856 Help/presets: Document behavior for unbounded parallelism
This is already technically supported by the implementation, but it's
not immediately intuitive to users.

Relates: #27070
2026-01-29 11:31:52 -05:00
Tyler Yankee 25641fe8d5 Help/presets: Document behavior for native build tool parallelism
This is already technically supported by the implementation, but it's
not immediately intuitive to users.

Relates: #27070
2026-01-29 11:28:57 -05:00
Brad King e47f7c8af4 cmELF: Avoid out-of-bounds access on zero-section ELF binary
Fix commit 615a1c6691 (cmELF: Get correct section count for large ELF
binaries, 2024-02-21, v3.30.0-rc1~354^2) to avoid out-of-bounds access
if both `e_shnum` and the first `sh_size` are zero.

Issue: #24877
2026-01-29 10:27:40 -05:00
Brad King 5954145e0d cmELF: Handle error loading first section header 2026-01-29 10:19:53 -05:00
Brad King 698c762d40 cmELF: Use size_t for container size 2026-01-29 10:16:59 -05:00
Brad King 0faa32a0d8 Merge topic 'ci-hip-archs'
6189d4e5f9 ci: Fix HIP tests on NVIDIA GPUs newer than the CUDA toolkit supports

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11635
2026-01-29 07:19:57 -05:00
Brad King e9f10b95ba Merge topic 'instrumentation-query-schema'
79c88703eb instrumentation: Add JSON schema for query files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11600
2026-01-29 07:18:33 -05:00
Joerg Bornemann d05bb5e3c7 Autogen: Fix AUTOGEN_BETTER_GRAPH_MULTI_CONFIG with VS generators
Use config-specific filenames instead of subdirectories to avoid object
file path mismatches in Visual Studio OBJECT libraries. The new paths
are consistent with how AUTOMOC generates .cpp files.

Add QtAutogen test RccObjectLibrary that fails without this patch.

Adjust the GlobalAutogenTarget test to the new paths.

Fixes: #26977
2026-01-29 08:30:57 +01:00
Kitware Robot 2a73de8f46 CMake Nightly Date Stamp 2026-01-29 00:08:53 -05:00
Vito Gamberini e4cbf1c153 cmCxxModuleMetadata: Update PopulateTarget
* Use std::set for all imported properties to deduplicate properties
  across imported modules

* Normalize sourcepath
2026-01-28 18:38:57 -05:00
Tyler Yankee 98eca860d4 instrumentation: Null unknown static system info
Add tests to ensure the `staticSystemInformation` subfields are always
either filled with meaningful data of a given type (i.e., non-empty
string, or >0 integer), or `null` if the data cannot be determined.

Issue: #27537, #27545
2026-01-28 15:40:20 -05:00
Brad King 6189d4e5f9 ci: Fix HIP tests on NVIDIA GPUs newer than the CUDA toolkit supports
Extend commit ff8c0e9c10 (ci: Clamp CUDA 'native' architecture to values
supported by its toolkit, 2022-03-14, v3.24.0-rc1~468^2) to avoid HIP
failures due to `nvcc -arch=native`.
2026-01-28 15:08:30 -05:00
Tyler Yankee 7867a36fdc instrumentation: Run system checks for static system info
This JSON object contains processor- and memory-related data, so we
must always ensure those checks are run first.

Fixes: #27537
2026-01-28 12:53:54 -05:00
Brad King 33ea2fed94 ci: Tell valgrind to skip Qt Autogen test binaries 2026-01-28 11:22:11 -05:00
Marc Chevrier 209d86c5fe GenEx FILE_SET_PROPERTY 2026-01-28 16:57:35 +01:00
Brad King 810e5d3a7a Merge topic 'FILE_SET-properties'
4113364c49 FILE_SET: properties management

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !11631
2026-01-28 10:55:47 -05:00
Brad King b9765b274e Merge topic 'FindRuby-cleanup'
fe006b5e9d FindRuby: Only search for released Ruby versions
82d39e5a7c FindRuby: Fix cache strings
a6a27d9160 FindRuby: Change MESSAGE to message.
af39d00aaa FindRuby: Fix debug message to output correct variable.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11629
2026-01-28 09:19:21 -05:00
Kitware Robot 77b2e4333d CMake Nightly Date Stamp 2026-01-28 00:07:14 -05:00
Martin Duffy 79c88703eb instrumentation: Add JSON schema for query files
Issue: #27504
2026-01-27 16:00:30 -05:00
Marc Chevrier 4113364c49 FILE_SET: properties management
Fixes: #27307
2026-01-27 18:15:26 +01:00
Brad King 43925617e2 Merge branch 'release-4.2' 2026-01-27 11:32:56 -05:00
Brad King 53ae242d55 CMake 4.2.3 v4.2.3 2026-01-27 11:03:47 -05:00
Brad King fdb73f5f1f Merge branch 'release-4.2' 2026-01-27 10:40:29 -05:00
Brad King b5eded8279 Merge branch 'release-4.1' 2026-01-27 10:40:17 -05:00
Brad King 10a91404d0 Merge branch 'release-4.1' into release-4.2 2026-01-27 10:39:51 -05:00
Brad King cc05acf0a1 CMake 4.1.5 v4.1.5 2026-01-27 10:11:40 -05:00
Brad King 3b77a025ff Merge branch 'release-4.2' 2026-01-27 10:03:46 -05:00
Brad King 4fc32aa2bc Merge branch 'release-4.1' 2026-01-27 10:03:39 -05:00
Brad King f0f9db844c Merge branch 'release-4.0' 2026-01-27 10:03:26 -05:00
Brad King 9ad49bd944 Merge branch 'release-4.1' into release-4.2 2026-01-27 10:03:10 -05:00
Brad King 74f60bafcf Merge branch 'release-4.0' into release-4.1 2026-01-27 10:03:01 -05:00
Brad King fe1fed2f4a CMake 4.0.6 v4.0.6 2026-01-27 09:24:22 -05:00
Brad King ddca39cebc Merge topic 'update-libarchive'
33c03120e8 Utilities: Update hard-coded try_compile results for libarchive 3.8.5
45a7f044ad Merge branch 'upstream-LibArchive' into update-libarchive
a0ed175008 LibArchive 2026-01-05 (dd897a78)
41fb8f00d8 libarchive: Update script to get 3.8.5

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11628
2026-01-27 08:53:57 -05:00
Brad King 35a9c4ca11 Merge topic 'preset-schema-refactor'
3373abf901 presets: Require valid CMake cache variable type in schema
c5862fee8f Help/presets: Improve formatting of some references
eee0bd2f6a presets: Factor out additional fields in schema
a9ad31820b presets: Refactor JSON schema
4e1dfc5194 Tests: Print concise error in JSON schema validation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11591
2026-01-27 08:53:16 -05:00
Kitware Robot d2345b5e67 CMake Nightly Date Stamp 2026-01-27 00:10:15 -05:00
Charlie Savage fe006b5e9d FindRuby: Only search for released Ruby versions 2026-01-26 14:25:59 -08:00
Charlie Savage 82d39e5a7c FindRuby: Fix cache strings 2026-01-26 13:16:41 -08:00
Charlie Savage a6a27d9160 FindRuby: Change MESSAGE to message. 2026-01-26 13:16:14 -08:00