Commit Graph

38295 Commits

Author SHA1 Message Date
Kitware Robot
ae1aa9a8f3 CMake Nightly Date Stamp 2025-10-24 00:05:14 -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
7953214454 FASTBuild: Explicitly disallow CUDA language since it is not implemented
Issue: #27318
2025-10-22 10:28:40 -04:00
Richard
41be8cb44a FileAPI: Fix paths relative to root directory
We normalize directory paths to not end in `/`.  However, a root
directory path always ends in `/`.  Avoid removing the first character
after it.

Fixes: #27308
2025-10-22 09:25:39 -04:00
Richard
3f7f2368d6 Avoid extra / in path to CMakeLists.txt in root directory 2025-10-22 09:22:23 -04:00
Kitware Robot
93c7644f49 CMake Nightly Date Stamp 2025-10-22 00:05:20 -04:00
Kitware Robot
ad684ceb56 CMake Nightly Date Stamp 2025-10-21 00:14:58 -04:00
Brad King
6c1322dcbc Merge topic 'update-kwsys'
9f0e0042dc Merge branch 'upstream-KWSys' into update-kwsys
fc7ef5028a KWSys 2025-10-20 (a3f3d4de)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11320
2025-10-20 16:31:24 -04:00
Brad King
9f0e0042dc Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-10-20 (a3f3d4de)
2025-10-20 13:50:56 -04:00
Brad King
23eb60f7ee Merge topic 'pch-reuse-from-without-pch-warning'
cb6423703a PrecompileHeaders: downgrade `REUSE_FROM` without a PCH to a warning

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11318
2025-10-20 13:47:50 -04:00
Brad King
f0422c006c Merge topic 'pch-reuse-from-without-pch-warning' into release-4.2
cb6423703a PrecompileHeaders: downgrade `REUSE_FROM` without a PCH to a warning

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11318
2025-10-20 13:47:48 -04:00
Brad King
6dfe90c0b2 Merge topic 'fbuild_ide_args'
31b51340a1 FASTbuild: allow setting custom IDE args

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11319
2025-10-20 13:46:08 -04:00
Brad King
c88b1acec5 Merge topic 'fbuild_ide_args' into release-4.2
31b51340a1 FASTbuild: allow setting custom IDE args

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11319
2025-10-20 13:46:05 -04:00
Brad King
1538875ba3 Merge topic 'collect-genex-fix'
6e637b1102 install(PACKAGE_INFO): Fix error when usage requirements contain certain genex

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11322
2025-10-20 13:42:53 -04:00
Brad King
2813b08d69 Merge topic 'collect-genex-fix' into release-4.2
6e637b1102 install(PACKAGE_INFO): Fix error when usage requirements contain certain genex

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11322
2025-10-20 13:42:49 -04:00
Kitware Robot
4fe23c0db0 CMake Nightly Date Stamp 2025-10-20 00:05:14 -04:00
Kitware Robot
c7089d6751 CMake Nightly Date Stamp 2025-10-19 00:05:14 -04:00
Kitware Robot
1c7fe4dc0b CMake Nightly Date Stamp 2025-10-18 00:04:39 -04:00
Ben Boeckel
cb6423703a PrecompileHeaders: downgrade REUSE_FROM without a PCH to a warning
Prior to f9bc615d (pchreuse: ban PCH reuse from targets which disable
PCH, 2025-06-15), using a target without PCH as a `REUSE_FROM` target
was not an error. Some projects had been doing this unknowingly.
Downgrade the fatal error into a warning so that such projects can at
least continue to build.

Fixes: #27316
2025-10-17 12:00:40 -04:00
Martin Duffy
6e637b1102 install(PACKAGE_INFO): Fix error when usage requirements contain certain genex
Since commit 13c7bb5b0c (cmGeneratorExpression: Update strip function to
collect parsed expressions, 2025-04-08, v4.1.0-rc1~361^2~1), the logic
to strip generator expressions would error if the stripped expressions
were being collected and an expression without a `:` was found inside an
expression with a `:`. This resulted in an error when exporting a target
that contained such a generator expression in its link libraries or
compile definitions.

Address the error by checking whether the latest `$<` proceeded the
latest `:`.
2025-10-17 11:34:43 -04:00
Eduard Voronkin
31b51340a1 FASTbuild: allow setting custom IDE args
Allow users to set custom args
when FBuild is invoked via IDE.
2025-10-17 10:16:14 -04:00
Kitware Robot
1f0004468d CMake Nightly Date Stamp 2025-10-17 00:05:13 -04:00
Brad King
42c7246dca CMake 4.2.0-rc1 2025-10-16 09:11:41 -04:00
Brad King
8fcc347fe8 Merge topic 'fbuild_fix_globbing'
6fd6bfab6f FASTBuild: fix globbing for large projects

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: 风之凌殇 <fzls.zju@gmail.com>
Merge-request: !11310
2025-10-16 08:55:05 -04:00
Kitware Robot
80953a8556 CMake Nightly Date Stamp 2025-10-16 00:05:12 -04:00
Eduard Voronkin
6fd6bfab6f FASTBuild: fix globbing for large projects
FASTBuild will replace `%1%` with
all the glob matches, which might
exceed command line limit on Windows.
Moreover, we don't need to pass all the
matches to the VerifyGlobs.cmake script.

Fixes: #27305
2025-10-15 09:17:41 -04:00
Brad King
c6269305cd Merge topic 'fix-export-link-interfaces'
b209c41dfa export(TARGETS): Restore EXPORT_LINK_INTERFACE_LIBRARIES

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11309
2025-10-15 09:10:00 -04:00
Brad King
b230eb2302 Merge topic 'fix-export-link-interfaces' into release-4.2
b209c41dfa export(TARGETS): Restore EXPORT_LINK_INTERFACE_LIBRARIES

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11309
2025-10-15 09:09:57 -04:00
Kitware Robot
b29c700b47 CMake Nightly Date Stamp 2025-10-15 00:04:53 -04:00
Taylor Sasser
b209c41dfa export(TARGETS): Restore EXPORT_LINK_INTERFACE_LIBRARIES
Refactoring in commit 998495cb49 (cmExportCommand: Port to
cmSubcommandTable, 2025-07-15) accidentally removed support for the
`EXPORT_LINK_INTERFACE_LIBRARIES` argument.  Restore it with a test.

Fixes: #27302
2025-10-14 13:03:22 -04:00
Brad King
373d9db66f Merge topic 'install-export-error-on-empty'
b9f3adb0a6 install(EXPORT): Fail earlier if EXPORT is missing

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11301
2025-10-14 12:51:49 -04:00
Matthew Woehlke
b9f3adb0a6 install(EXPORT): Fail earlier if EXPORT is missing
Add an explicit check in `install(EXPORT)` that the export name is
non-empty. Since an empty-named export set will never exist, this is
always an error. Previously, however, the error would not be caught
until generate time. Now an error will be produced immediately.
2025-10-14 11:52:03 -04:00
Kitware Robot
3b648d3d99 CMake Nightly Date Stamp 2025-10-14 00:04:19 -04:00
Kitware Robot
c9ffe0b9a1 CMake Nightly Date Stamp 2025-10-13 00:04:44 -04:00
Brad King
12d029da84 Merge topic 'cuda-msvc-defines'
614d295c1e VS: Compute MSVC character set in CUDA-only targets
19a61e56cf VS: Refactor MSVC character set selection
8a135ea018 Tests: Teach MSVC ABI defs cases to tolerate NVCC CUDA arch warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11302
2025-10-12 09:17:23 -04:00
Kitware Robot
48e608ad5d CMake Nightly Date Stamp 2025-10-12 00:05:03 -04:00
Kitware Robot
52d3d4dd38 CMake Nightly Date Stamp 2025-10-11 00:04:37 -04:00
Brad King
614d295c1e VS: Compute MSVC character set in CUDA-only targets
Fix commit 6874efb592 (MSVC: Always define a character set, 2025-09-24)
for CUDA in Visual Studio.
2025-10-10 17:07:36 -04:00
Brad King
19a61e56cf VS: Refactor MSVC character set selection 2025-10-10 16:55:02 -04:00
Kitware Robot
c5c44bd6a9 CMake Nightly Date Stamp 2025-10-10 00:06:26 -04:00
Brad King
3cf002e2db Begin post-4.2 development 2025-10-09 10:27:29 -04:00
Brad King
10556731a1 Begin 4.2 release versioning 2025-10-09 10:22:10 -04:00
Brad King
32689113d7 Merge topic 'genex-target-intermediate-dir'
f195c9ef2a genex: Add TARGET_INTERMEDIATE_DIR expression
5c5634db52 cmGeneratorExpressionNode: Factor out HasKnownObjectFileLocation check

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11217
2025-10-09 09:12:40 -04:00
Martin Duffy
f195c9ef2a genex: Add TARGET_INTERMEDIATE_DIR expression
Fixes: #27196
2025-10-09 08:07:20 -04:00
Brad King
420be50b5e Merge topic 'depfile-empty'
2c300a4c0a Fix out-of-bounds read on empty gcc-style depfile

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11293
2025-10-09 08:03:25 -04:00
Kitware Robot
48b5d61970 CMake Nightly Date Stamp 2025-10-09 00:04:45 -04:00
Martin Duffy
5c5634db52 cmGeneratorExpressionNode: Factor out HasKnownObjectFileLocation check 2025-10-08 17:34:02 -04:00
Joerg Bornemann
2c300a4c0a Fix out-of-bounds read on empty gcc-style depfile
If a gcc dep file is read that contains no dependencies,
cmReadGccDepfile returns a valid std::optional containing an empty
vector. Check at the call sites in cmDependsCompiler whether the vector
is empty before trying to access the vector's elements.

Fixes: #27270
2025-10-08 11:37:15 -04:00