Commit Graph

38341 Commits

Author SHA1 Message Date
Brad King 5d307b1d30 Merge topic 'vs-sln'
6ebf21a360 VS: Restore support for Intel Fortran projects

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11371
2025-10-30 08:49:07 -04:00
Kitware Robot 175321c24b CMake Nightly Date Stamp 2025-10-30 00:07:22 -04:00
Brad King 6ebf21a360 VS: Restore support for Intel Fortran projects
Refactoring in commit 3882718872 (VS: Decouple solution generation from
`.sln` file format, 2025-09-15, v4.2.0-rc1~154^2~3) accidentally dropped
Fortran targets from the generated VS Solution.

Fixes: #27346
2025-10-29 11:55:53 -04:00
Kitware Robot 80dbadbd8f CMake Nightly Date Stamp 2025-10-29 00:04:46 -04:00
Brad King 79ecb8f188 Merge topic 'FASTBuild-optimize-try_compile'
f6abf8044a FASTBuild: Disable caching and distribution in try_compile builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11365
2025-10-28 09:40:36 -04:00
Brad King 37d7b9820e Merge topic 'FASTBuild-optimize-try_compile' into release-4.2
f6abf8044a FASTBuild: Disable caching and distribution in try_compile builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11365
2025-10-28 09:40:34 -04:00
Brad King 5f889a093c Merge topic 'instrumentation-exit'
236207b81a instrumentation: Fix snippet `result` field
d3add47973 Tests/Instrumentation: Remove unused files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11339
2025-10-28 09:38:52 -04:00
Brad King aef339b26f Merge topic 'instrumentation-exit' into release-4.2
236207b81a instrumentation: Fix snippet `result` field
d3add47973 Tests/Instrumentation: Remove unused files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11339
2025-10-28 09:38:49 -04:00
Brad King e765a58063 Merge topic 'make-LINK_OPTIONS-position'
8fa4a4bf67 Makefiles: Position target-wide link flags consistently with other generators

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11355
2025-10-28 09:36:30 -04:00
Brad King d2800671d9 Merge topic 'make-LINK_OPTIONS-position' into release-4.2
8fa4a4bf67 Makefiles: Position target-wide link flags consistently with other generators

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11355
2025-10-28 09:36:27 -04:00
Brad King d6a5c273b4 Merge topic 'improve-cps-project-error'
f2b7184b98 cmPackageInfoArguments: Improve error message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !11363
2025-10-28 09:28:14 -04:00
Brad King 9d7393a0b0 Merge topic 'improve-cps-project-error' into release-4.2
f2b7184b98 cmPackageInfoArguments: Improve error message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !11363
2025-10-28 09:28:11 -04:00
Brad King ea15ae3479 Merge topic 'improve-cps-export-namespace-error'
68e836d20b Merge branch 'backport-4.1-improve-cps-export-namespace-error'
86e647ef2a CPS: Improve invalid namespace error

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11364
2025-10-28 09:22:36 -04:00
Kitware Robot c601543905 CMake Nightly Date Stamp 2025-10-28 00:05:20 -04:00
Eduard Voronkin f6abf8044a FASTBuild: Disable caching and distribution in try_compile builds
This avoids hashing the whole toolchain and makes `try_compile` faster.
2025-10-27 16:59:29 -04:00
Brad King 68e836d20b Merge branch 'backport-4.1-improve-cps-export-namespace-error' 2025-10-27 15:56:11 -04:00
Tyler Yankee 236207b81a instrumentation: Fix snippet result field
Give the actual exit code of the command from the snippet as intended;
currently, this always gives 0 for sub-commands like compile and link,
as well as `ctest`.

For now, the result in build snippets will be `null`.
2025-10-27 15:42:58 -04:00
Matthew Woehlke 86e647ef2a CPS: Improve invalid namespace error
When CPS export fails due to a dependency on an improperly named
external target, reiterate the "canonical namespace" in the error
message for clarity.
2025-10-27 14:40:34 -04:00
Matthew Woehlke f2b7184b98 cmPackageInfoArguments: Improve error message
When given the name of a project that doesn't exist, report it as an
"unknown project" rather than an "invalid project". This is more
consistent with other, similar reporting.
2025-10-27 12:29:40 -04:00
Marc Chevrier 8fa4a4bf67 Makefiles: Position target-wide link flags consistently with other generators
In particular, the `LINK_OPTIONS` target property was not placed
on link lines consistently with other generators.

Fixes: #27326
2025-10-27 10:41:47 -04:00
Kitware Robot c5e8076033 CMake Nightly Date Stamp 2025-10-27 00:05:12 -04:00
Brad King 41a5e3b395 Merge topic 'instrumentation-show-only'
de3cb099a3 instrumentation: Add showOnly to ctest snippets
2976742520 instrumentation: Only quote arguments that contain a space

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Craig Scott <craig.scott@crascit.com>
Merge-request: !11337
2025-10-26 10:34:08 -04:00
Brad King 0030253224 Merge topic 'instrumentation-show-only' into release-4.2
de3cb099a3 instrumentation: Add showOnly to ctest snippets
2976742520 instrumentation: Only quote arguments that contain a space

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Craig Scott <craig.scott@crascit.com>
Merge-request: !11337
2025-10-26 10:34:06 -04:00
Brad King 21f452b059 Merge topic 'fbuild_cuda'
2cfae5e140 ci: Add job for CUDA with FASTBuild generator on Linux
4135175337 FASTBuild: support CUDA language

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11324
2025-10-26 10:32:25 -04:00
Brad King 823362224f Merge topic 'fbuild_cuda' into release-4.2
2cfae5e140 ci: Add job for CUDA with FASTBuild generator on Linux
4135175337 FASTBuild: support CUDA language

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11324
2025-10-26 10:32:23 -04:00
Kitware Robot 57a0205c50 CMake Nightly Date Stamp 2025-10-26 00:05:14 -04:00
Brad King df83179047 Merge topic 'sbom_model'
0653620033 cmSbom: Add SPDX object model and serializers
985b0f5bcf CMake C++11 Compatibility: Add more type_traits from C++14 and C++17

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11231
2025-10-25 09:13:43 -04:00
Brad King c305c99ddb Merge topic 'vs-pdb-file-name-path-if-file'
799bf33c5a VS: do not create `ProgramDataBaseFileName` entries without a filepath

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11338
2025-10-25 09:02:55 -04:00
Brad King c1fcff6bff Merge topic 'vs-pdb-file-name-path-if-file' into release-4.2
799bf33c5a VS: do not create `ProgramDataBaseFileName` entries without a filepath

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11338
2025-10-25 09:02:54 -04:00
Eduard Voronkin 4135175337 FASTBuild: support CUDA language
Fixes: #27318
2025-10-25 08:58:38 -04:00
Kitware Robot 7d1befd129 CMake Nightly Date Stamp 2025-10-25 00:04:46 -04:00
Brad King 046f3dc7b9 Merge topic 'vs-slnx'
46b0202ce0 VS: Fix SLNX generation so CSharp projects build in the IDE

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11341
2025-10-24 17:21:20 -04:00
Brad King 7708dfe9db Merge topic 'vs-slnx' into release-4.2
46b0202ce0 VS: Fix SLNX generation so CSharp projects build in the IDE

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11341
2025-10-24 17:21:19 -04:00
Ben Boeckel 799bf33c5a VS: do not create ProgramDataBaseFileName entries without a filepath
The logic in commit f78f592b78 (pchreuse: defer target existence
enforcement to generation time, 2025-06-16, v4.2.0-rc1~481^2~4) caused
generator targets to always respond with something for compilation PDB
files. This may be a directory as the flag supports it (the then
compiler chooses the filename). However, one caller was expecting it to
always be a path to a file in order to specify the
`ProgramDataBaseFileName` element. However, this usage cannot be a
directory.

In addition to not having a PDB path at all, also verify that it is not
a path to a directory before creating the `ProgramDataBaseFileName`
element.

This was observed in builds using `import std` in Debug mode.

Fixes: #27320
2025-10-24 17:18:36 -04:00
Brad King 8b7bf6cc67 Merge topic 'fix/typos-1.38.1'
8de02a14c8 ci(pre-commit): version bump `typos` hook plus fix found typos

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11344
2025-10-24 17:15:00 -04:00
Brad King b15718de08 Merge topic 'cps-use-license'
94b6e36b6b find_package: Respect CPS license

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11343
2025-10-24 17:11:32 -04:00
Brad King cd28c759ff Merge topic 'cps-use-license' into release-4.2
94b6e36b6b find_package: Respect CPS license

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11343
2025-10-24 17:11:30 -04:00
Brad King d4fa081f78 Merge topic 'FASTBuild-optimize-try_compile'
e42881422f FASTBuild: optimize try_compile builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11335
2025-10-24 17:00:07 -04:00
Brad King e624610dda Merge topic 'FASTBuild-optimize-try_compile' into release-4.2
e42881422f FASTBuild: optimize try_compile builds

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11335
2025-10-24 17:00:05 -04:00
Taylor Sasser 0653620033 cmSbom: Add SPDX object model and serializers
Adds definitions for representing software bill of materials (SBOM) information
and generating SPDX SBOMs.

Issue: #26719
Issue: #27001
2025-10-24 13:59:01 -04:00
Martin Duffy de3cb099a3 instrumentation: Add showOnly to ctest snippets
Fixes: #27269
2025-10-24 11:08:52 -04:00
Martin Duffy 2976742520 instrumentation: Only quote arguments that contain a space 2025-10-24 11:08:39 -04:00
Brad King 46b0202ce0 VS: Fix SLNX generation so CSharp projects build in the IDE
Add an explicit solution-level per-project `Platform` for `.csproj`
projects even if it is the same as the solution-wide `Platform`.
Otherwise the VS IDE skips building it.

Fixes: #27330
2025-10-24 10:18:01 -04:00
Kitware Robot ae1aa9a8f3 CMake Nightly Date Stamp 2025-10-24 00:05:14 -04:00
Matthew Woehlke 94b6e36b6b find_package: Respect CPS license
Modify CPS import to set the `SPDX_LICENSE` on imported targets using
the specified package `license`, if present (and if none of the other
mechanisms for setting a license apply).
2025-10-23 14:30:30 -04:00
Alex Turbov 8de02a14c8 ci(pre-commit): version bump typos hook plus fix found typos 2025-10-23 21:14:25 +04:00
Brad King c8527dc4d8 Merge topic 'fileapi-relative-under-root'
41be8cb44a FileAPI: Fix paths relative to root directory
3f7f2368d6 Avoid extra / in path to CMakeLists.txt in root directory

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11314
2025-10-23 11:19:43 -04:00
Brad King 162b1d5910 Merge topic 'fbuild_disable_cuda_support'
7953214454 FASTBuild: Explicitly disallow CUDA language since it is not implemented

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11334
2025-10-23 11:17:55 -04:00
Kitware Robot a1a8fbd0de CMake Nightly Date Stamp 2025-10-23 00:04:50 -04:00
Eduard Voronkin e42881422f FASTBuild: optimize try_compile builds
The generator does a lot of tricks in order to make the "rebuild-bff"
target up-to-date immediately after the generation. We can skip all of
those during "TryCompile" runs, which should reduce configure time.
2025-10-22 17:32:48 -07:00