78225 Commits
Author SHA1 Message Date
Brad King e0e4ac25b9 Merge topic 'ci-fedora-45'
fca05ac459 ci: use Fedora 45 images and environments
6e50523aa4 ci: update Fedora base images to Fedora 45
25ba11fa71 ci: Fix CMake_TEST_HIP cache entry type
ce5fb4628e CTestCustom: Suppress clang-analyzer warning in libuv
efd6a0fdcd clang-tidy: ignore warnings new in version 23
387b496b4f cmake: Avoid else-after-exit
5ebdde2240 cmConfigureLog: Avoid else-after-break
d158a7fabb cmNinjaNormalTargetGenerator: Avoid else-after-return

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12725
2026-10-28 09:16:04 -04:00
Brad King b11b03e9f0 Merge topic 'ci-fedora-45' into release-4.5
fca05ac459 ci: use Fedora 45 images and environments
6e50523aa4 ci: update Fedora base images to Fedora 45
25ba11fa71 ci: Fix CMake_TEST_HIP cache entry type
ce5fb4628e CTestCustom: Suppress clang-analyzer warning in libuv
efd6a0fdcd clang-tidy: ignore warnings new in version 23
387b496b4f cmake: Avoid else-after-exit
5ebdde2240 cmConfigureLog: Avoid else-after-break
d158a7fabb cmNinjaNormalTargetGenerator: Avoid else-after-return

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12725
2026-10-28 09:16:02 -04:00
Brad King d044b46e26 Merge topic 'ci-intel-compiler'
46942a448d ci: add job testing Intel oneAPI 2026.2.0 compilers on Linux

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12724
2026-10-28 09:12:16 -04:00
Kitware Robot 6a65baaa53 CMake Nightly Date Stamp 2026-10-28 00:08:44 -04:00
Tyler Yankee eba57196e7 Tests/RunCMake/property_init: Add lint/coverage case
Parse the relevant source file and existing tests to prevent new
properties from being implemented without a corresponding test.
2026-10-27 13:36:32 -04:00
Tyler Yankee 29315ad49e Tests/RunCMake/property_init: Fix per-config property tests
`per_config` read from undefined variables and always produced an empty
table, so no per-config property was ever checked. Fix it to parse its
arguments, build property names without a doubled `_`, and uppercase
configuration names to match `cmTarget`. Use `-` rather than `/` in
expected values since postfixes become part of artifact file names.

Single-config generators initialize per-config properties only for
`CMAKE_BUILD_TYPE`, so set one and fail if no configurations are found.

This exposes issues with the test expectations which are corrected.
2026-10-27 13:36:30 -04:00
Tyler Yankee 825a52a64e Tests/RunCMake/property_init: Fix ENABLE_EXPORTS target type lists
The `ENABLE_EXPORTS` checks passed `executable_target` and
`shared_library_target` to `run_property_tests`, but only `executable`
was prepared, so no targets were ever checked.
2026-10-27 13:36:29 -04:00
Tyler Yankee a4d3c8b625 Tests/RunCMake/property_init: Remove duplication in PIC case 2026-10-27 13:36:28 -04:00
Tyler Yankee 19c9125289 Tests/RunCMake/property_init: Add missing properties 2026-10-27 13:36:26 -04:00
Brad King 9c097d77b4 Merge branch 'release-4.5' 2026-10-27 12:07:59 -04:00
Brad King 2a4177cac1 Merge branch 'release-4.4' into release-4.5 2026-10-27 12:07:33 -04:00
Brad King aa4fae824a CMake 4.4.5 v4.4.5 2026-10-27 11:28:05 -04:00
Brad King ffe8006d36 Merge branch 'release-4.5' 2026-10-27 11:23:22 -04:00
Brad King 5e5619361d Merge branch 'release-4.4' into release-4.5 2026-10-27 11:22:40 -04:00
Brad King 2160b4c99b Merge branch 'release-4.4' 2026-10-27 11:20:10 -04:00
Brad King bed2113cfb Merge branch 'release-4.3' 2026-10-27 11:19:58 -04:00
Brad King fd1c2c2378 Merge branch 'release-4.3' into release-4.4 2026-10-27 11:19:36 -04:00
Brad King 1b053f63d2 CMake 4.3.6 v4.3.6 2026-10-27 10:43:57 -04:00
Brad King 46942a448d ci: add job testing Intel oneAPI 2026.2.0 compilers on Linux
There is no corresponding Intel classic C/C++ compiler version.
2026-10-27 10:34:28 -04:00
Brad King 95ea905838 Merge topic 'configure-generate-perf'
ee657c9517 cmLocalGenerator: Use cached real paths for implicit include directories
2c1b01e4fe AutoRcc: Cache the rcc listing of qrc files
0af0ee077f AutoGen: Use directory listings to rule out missing headers
b8dc198329 Ninja: Avoid creating the same object directories repeatedly
ae0dc8ab9f get_filename_component: Cache the actual case of path components
6591abb0b2 cmSourceFileLocation: Avoid checking the disk repeatedly
947ec5e324 Add infrastructure to invalidate cached file system state
841b2289aa Avoid temporary files when writing generated files if different
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Osyotr <zhenchik35026@gmail.com>
Merge-request: !12612
2026-10-27 10:29:52 -04:00
Brad King bdb88be6cf Merge topic 'genex-fuzz-fixes'
d7a9711b4f cmGeneratorExpressionEvalFuzzer: Fix crash on unclosed genex
2f0da06e90 cmGeneratorExpressionParser: Fix crash on "$<" at end of input
b7f4d4b5dd cmGeneratorExpressionParser: Remove dead "if empty" check

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12721
2026-10-27 10:27:54 -04:00
Brad King 64b2b5e7b2 Merge topic 'doc-source-genex-target'
a0f9ccbdbf Help: Clarify target of source property genexes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !12711
2026-10-27 10:25:17 -04:00
Brad King a4e1e76191 Merge topic 'doc-nonint'
a55e28c670 Help: note that CTEST_INTERACTIVE_DEBUG_MODE is read-only

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12719
2026-10-27 10:22:22 -04:00
Brad King a75031574c Merge topic 'doc-runcmake-inspect'
4cd4e858a8 Tests/RunCMake: Document toolchain inspection pattern

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12716
2026-10-27 10:21:04 -04:00
Brad King ee183e44c2 Merge topic 'update-kwsys'
f027946284 Merge branch 'upstream-KWSys' into update-kwsys
e6897de851 KWSys 2026-10-27 (ebfd44a9)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12720
2026-10-27 10:16:15 -04:00
Brad King fca05ac459 ci: use Fedora 45 images and environments
Disable some FindHDF5 tests for now because we need updates.

Issue: #28215
2026-10-27 08:15:40 -04:00
Brad King f027946284 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2026-10-27 (ebfd44a9)
2026-10-27 07:19:40 -04:00
KWSys Upstream e6897de851 KWSys 2026-10-27 (ebfd44a9)
Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit ebfd44a92c10d8eff3c540ca3afbad0f08d63a70 (master).

Upstream Shortlog
-----------------

Tyler Yankee (1):
      832afd4d SystemInformation: Convert wchar_t to narrow for stream insertion
2026-10-27 07:19:39 -04:00
Kitware Robot 14ddfdfb56 CMake Nightly Date Stamp 2026-10-27 00:05:36 -04:00
Sergiu Deitsch a0f9ccbdbf Help: Clarify target of source property genexes
The documentation did not say which target generator expressions in
source file properties refer to. They are evaluated separately for each
target compiling the source, so a source shared by several targets can
be compiled differently by each. Document this with an example and test
a source shared by two targets.
2026-10-26 22:03:39 +01:00
Brad King 6e50523aa4 ci: update Fedora base images to Fedora 45
This also updates `typos` from commit 76a8381c98 (ci(pre-commit):
version bump `typos` hook..., 2026-08-29, v4.5.0-rc1~243^2).
2026-10-26 16:15:30 -04:00
Brad King 25ba11fa71 ci: Fix CMake_TEST_HIP cache entry type 2026-10-26 16:15:30 -04:00
Brad King ce5fb4628e CTestCustom: Suppress clang-analyzer warning in libuv
This is third-party code.
2026-10-26 16:15:30 -04:00
Brad King efd6a0fdcd clang-tidy: ignore warnings new in version 23
These warnings can be fixed in the future.  Ignore them for now.
2026-10-26 16:15:30 -04:00
Brad King 387b496b4f cmake: Avoid else-after-exit 2026-10-26 16:15:30 -04:00
Brad King 5ebdde2240 cmConfigureLog: Avoid else-after-break 2026-10-26 16:15:30 -04:00
Brad King d158a7fabb cmNinjaNormalTargetGenerator: Avoid else-after-return 2026-10-26 16:15:29 -04:00
Tyler Yankee d7a9711b4f cmGeneratorExpressionEvalFuzzer: Fix crash on unclosed genex
When an expression is never closed, `extendResult` called `.front()`
without checking whether the `contents` vector was empty.

The previous check using `emptyParamTermination` was an attempt at
addressing such a case, but obviously had a gap. Since the new approach
covers this, it can be dropped.
2026-10-26 15:48:49 -04:00
Tyler Yankee 2f0da06e90 cmGeneratorExpressionParser: Fix crash on "$<" at end of input
When a previous expression in the input has already been closed,
parsing continued to the next `$<`, and when that's at the end, it
stepped past.
2026-10-26 15:48:49 -04:00
Tyler Yankee b7f4d4b5dd cmGeneratorExpressionParser: Remove dead "if empty" check
Add a test case to verify preservation of the existing behavior, which
is an evaluation error.
2026-10-26 15:48:49 -04:00
scivision a55e28c670 Help: note that CTEST_INTERACTIVE_DEBUG_MODE is read-only
This could be surprising since similar variable read the value if
set, while this variable if set by the user has no effect on
`ctest --interactive-debug-mode`.
2026-10-26 15:37:10 -04:00
John Franklin Rickard 1ec0ddf399 VS: Only generate RC options if necessary
The RC options were computed and generated for every vcxproj file
before, even if no rc source was actually invocing the compiler.
Now we check first if we actually need to compute these.
2026-10-26 15:34:16 -04:00
John Franklin Rickard 29d594d95a VS: Only generate MIDL options if necessary
The MIDL options were computed and generated for every vcxproj file
before, even if no idl source was actually invocing the compiler.
Now we check first if we actually need to compute these.
2026-10-26 15:34:09 -04:00
John Franklin Rickard b07b27d57c VS: Only generate MASM options if necessary
The MASM options were computed and generated for every vcxproj file
before, even if no source file actually used the ASM_MASM compiler.
Now we check first if we actually need to compute these.
2026-10-26 15:33:51 -04:00
Brad King edb5bbbe0a Merge branch 'release-4.5' 2026-10-26 15:21:42 -04:00
Brad King 05aa370dd0 Merge topic 'codegen-noop-fix'
36fcfb3e01 Tests/RunCMake/Codegen: Extend coverage
fe95f96096 Ninja Multi-Config: Fix cross-config codegen target suffix
f54117c6b1 Ninja: Evaluate generator expressions in CODEGEN outputs
902ec85438 Makefile, Ninja: Fix no-op codegen builds with no CODEGEN
17de9500e8 Help: Clarify existing CODEGEN behavior

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex Overchenko <aleksandr9809@gmail.com>
Merge-request: !12715
2026-10-26 15:21:42 -04:00
Brad King 3378751f22 Merge topic 'codegen-noop-fix' into release-4.5
36fcfb3e01 Tests/RunCMake/Codegen: Extend coverage
fe95f96096 Ninja Multi-Config: Fix cross-config codegen target suffix
f54117c6b1 Ninja: Evaluate generator expressions in CODEGEN outputs
902ec85438 Makefile, Ninja: Fix no-op codegen builds with no CODEGEN
17de9500e8 Help: Clarify existing CODEGEN behavior

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex Overchenko <aleksandr9809@gmail.com>
Merge-request: !12715
2026-10-26 15:21:40 -04:00
Brad King d9c29ad39c Merge topic 'ninja-target-depend-info-write-if-different'
f0396a582c Ninja: Write target depend info only when it is different

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12714
2026-10-26 15:17:08 -04:00
Brad King 4c7b513519 Merge topic 'try_compile-module-base-dirs'
517a62f593 try_compile: Do not require module sources in the source directory

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12709
2026-10-26 15:13:21 -04:00
Brad King 5b80a88126 Merge topic 'work/FindPkgConfig-modversion-variable'
4f90522907 FindPkgConfig: Fix version and prefix with freedesktop.org pkg-config

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !12707
2026-10-26 15:11:58 -04:00