Commit Graph

71262 Commits

Author SHA1 Message Date
Brad King
a584d962d1 Merge topic 'code-check-ninja-path-fix'
baa74ed677 clang-tidy: Use cleaner path to export-fixes file with Ninja

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Eduard Voronkin <edward.voronkin@gmail.com>
Merge-request: !10946
2025-07-15 10:50:44 -04:00
Brad King
0b1dace035 Merge topic 'codemodel-version-directory-target-objects'
4315076f2e fileapi: Add codemodelVersion fields to target and directory objects

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10928
2025-07-15 10:47:42 -04:00
Vito Gamberini
baa74ed677 clang-tidy: Use cleaner path to export-fixes file with Ninja
The clang-tidy "export-fixes" flag was using unconverted Ninja paths due
to a flipped boolean check from commit 993dde925f (TargetGenerator:
Factor out generation of code check rules, 2023-05-12,
v3.27.0-rc1~84^2~2).
2025-07-15 10:46:10 -04:00
Kitware Robot
2c3f83a164 CMake Nightly Date Stamp 2025-07-15 00:04:26 -04:00
Brad King
e82da297d4 Merge topic 'file-api-version-int-vars'
892fa0bb88 fileapi: Use unsigned int consistently for version numbers

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10945
2025-07-14 10:13:58 -04:00
Brad King
263c76a0cd Merge topic 'file-GLOB-CONFIGURE_DEPENDS-verbose'
9f28c02056 file(GLOB): Make CONFIGURE_DEPENDS mismatch more verbose

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10939
2025-07-14 09:35:09 -04:00
Brad King
69be3e5dc7 Merge topic 'doc_default_working_dir'
72bb891348 Help: Document WORKING_DIRECTORY default behavior missing in some commands

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10902
2025-07-14 09:33:49 -04:00
Brad King
8815ed41ab Merge topic 'cpack-wix-long-paths'
f0f1d6e147 CPack/WiX: Encode long paths with UNC prefix

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10929
2025-07-14 09:31:52 -04:00
Kitware Robot
07f4179b81 CMake Nightly Date Stamp 2025-07-14 00:04:40 -04:00
Craig Scott
4315076f2e fileapi: Add codemodelVersion fields to target and directory objects
This will allow JSON schemas for these two types of files to describe the
version-specific content without requiring any outside information.

Fixes: #27031
2025-07-13 14:59:03 +10:00
Craig Scott
892fa0bb88 fileapi: Use unsigned int consistently for version numbers
The file API code used unsigned long to hold the major version in most
places, but not all. Some places used unsigned int, and an important one
of those is the cmFileApi::BuildVersion() function. As a result, it has never
been safe for a large value not representable by an unsigned int to be
used in these variables.

Convert all of the file API version number variables and function arguments
to use unsigned int consistently. This avoids any size mismatch warnings
when passing values around. They also don't need to be unsigned long,
as we never expect version numbers to be anything even close to what
an unsigned int cannot represent.
2025-07-13 14:56:28 +10:00
Kitware Robot
2839c3a933 CMake Nightly Date Stamp 2025-07-13 00:04:34 -04:00
Kitware Robot
7fcc90c99c CMake Nightly Date Stamp 2025-07-12 00:04:32 -04:00
Brad King
5d3497ac10 Merge topic 'ci-linkcheck'
41415dcdf5 ci: Do not linkcheck $project.sourceforge.net URLs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10942
2025-07-11 06:57:11 -04:00
Kitware Robot
8e67330e08 CMake Nightly Date Stamp 2025-07-11 00:04:36 -04:00
Daniel Hannon
9f28c02056 file(GLOB): Make CONFIGURE_DEPENDS mismatch more verbose
Expand the `-- GLOB mismatch!` message to print what is different.
2025-07-10 11:48:04 -04:00
Brad King
79b5b4ae26 Merge branch 'release-4.1' 2025-07-10 11:04:22 -04:00
Brad King
2f8ae28ef6 CMake 4.1.0-rc2 v4.1.0-rc2 2025-07-10 10:35:07 -04:00
Brad King
41415dcdf5 ci: Do not linkcheck $project.sourceforge.net URLs
These URLs are expected to be stable.  Reduce load on SF infrastructure.
2025-07-10 10:34:19 -04:00
Brad King
34e468ef58 Merge branch 'release-4.1' 2025-07-10 10:30:26 -04:00
Brad King
5cb9891d64 Merge topic 'windows-kernel-mode-driver'
2f5dce1b40 cmExperimental: remove the flag for Windows Kernel Mode Driver support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10937
2025-07-10 10:30:26 -04:00
Brad King
265c676445 Merge topic 'windows-kernel-mode-driver' into release-4.1
2f5dce1b40 cmExperimental: remove the flag for Windows Kernel Mode Driver support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10937
2025-07-10 10:30:23 -04:00
Brad King
f8887beb34 Merge branch 'release-4.1' 2025-07-10 10:29:01 -04:00
Brad King
bb47b25993 Merge topic 'file-api-fileset-fix'
ea6404b9c4 FileAPI: Ignore unresolved FileSet generators

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: autoantwort <leander.schulten@rwth-aachen.de>
Merge-request: !10938
2025-07-10 10:29:01 -04:00
Brad King
cf1bf70fc2 Merge topic 'file-api-fileset-fix' into release-4.1
ea6404b9c4 FileAPI: Ignore unresolved FileSet generators

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: autoantwort <leander.schulten@rwth-aachen.de>
Merge-request: !10938
2025-07-10 10:28:59 -04:00
Kitware Robot
a4d82a5a6d CMake Nightly Date Stamp 2025-07-10 00:04:32 -04:00
Dan Raviv
72bb891348 Help: Document WORKING_DIRECTORY default behavior missing in some commands 2025-07-09 19:33:35 -07:00
Noki
f0f1d6e147 CPack/WiX: Encode long paths with UNC prefix
Closes: #27049
2025-07-09 14:53:42 -04:00
Vito Gamberini
ea6404b9c4 FileAPI: Ignore unresolved FileSet generators
Fixes: #27054
2025-07-09 10:08:47 -04:00
Brad King
2f5dce1b40 cmExperimental: remove the flag for Windows Kernel Mode Driver support
Enable setting `CMAKE_SYSTEM_NAME` to `WindowsKernelModeDriver` without
an experimental gate.
2025-07-09 09:54:45 -04:00
Brad King
14d1d90c1b Merge branch 'release-4.1' 2025-07-09 09:44:51 -04:00
Brad King
f143b8a623 Merge topic 'keyword-project-name-fix'
a38e594340 project: fix keyword argument as project name
7238c8c999 ArgumentParser: implement HasKeyword helper

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10935
2025-07-09 09:44:50 -04:00
Brad King
9953069215 Merge topic 'keyword-project-name-fix' into release-4.1
a38e594340 project: fix keyword argument as project name
7238c8c999 ArgumentParser: implement HasKeyword helper

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10935
2025-07-09 09:44:49 -04:00
Brad King
9eb08ae212 Merge branch 'release-4.1' 2025-07-09 09:43:29 -04:00
Brad King
e5dc5dfe10 Merge topic 'cuda-nonexistent-compiler-path'
bf442068bb CUDA: Improve error message for nonexistent compiler paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10933
2025-07-09 09:43:29 -04:00
Brad King
0e254055d6 Merge topic 'cuda-nonexistent-compiler-path' into release-4.1
bf442068bb CUDA: Improve error message for nonexistent compiler paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10933
2025-07-09 09:43:28 -04:00
Kitware Robot
51e22572ed CMake Nightly Date Stamp 2025-07-09 00:04:52 -04:00
Vito Gamberini
a38e594340 project: fix keyword argument as project name
Fixes: #27051
2025-07-08 18:00:00 -04:00
Vito Gamberini
7238c8c999 ArgumentParser: implement HasKeyword helper 2025-07-08 17:44:07 -04:00
Robert Maynard
bf442068bb CUDA: Improve error message for nonexistent compiler paths
Fixes: #25709
2025-07-08 09:58:37 -04:00
Brad King
64b35e8fcb Merge topic 'gtest-use-json-output-for-discovery'
088b0af2f9 GoogleTest: Fix naming of tests with named parameters
3f780c3fde GoogleTest: Set DEF_SOURCE_LINE on tests if file and line are known
1cdceae8e3 GoogleTest: Parse discovered test list from JSON output if supported
07d14c21a9 GoogleTest: Add tests for NO_PRETTY_VALUES and NO_PRETTY_TYPES
54bb974b27 GoogleTest: Add tests for named parameters

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Dennis Lambe <malsyned_kitware@malsyned.net>
Merge-request: !10739
2025-07-08 09:40:03 -04:00
Kitware Robot
49d5d9f708 CMake Nightly Date Stamp 2025-07-08 00:04:52 -04:00
Dennis Lambe Jr.
088b0af2f9 GoogleTest: Fix naming of tests with named parameters
Recent changes to the JSON and stdout parsers changed the current test
names from an unintentional bug to an intentional compatibility hack.
This commit removes that compatibility hack and makes tests with named
parameters follow the same naming conventions as tests with numbered
parameters.

Fixes: #26939
2025-07-08 07:58:35 +10:00
Ottmar Zittlau
3f780c3fde GoogleTest: Set DEF_SOURCE_LINE on tests if file and line are known
This information is available when --gtest_output=json is supported,
which it almost always is on GoogleTest >= 1.8.1.
2025-07-08 07:58:34 +10:00
Ottmar Zittlau
1cdceae8e3 GoogleTest: Parse discovered test list from JSON output if supported
The --gtest_output=json option is supported from gtest 1.8.1 onwards.
Earlier versions output a warning about it being an unrecognized option,
and builds that #define GTEST_HAS_FILE_SYSTEM 0 output an error about it
being unsupported, but in both cases still continue outputting the same
plain text output as before and return an exit code of 0.

We now add that option and check for whether the JSON file is generated,
falling back to parsing the plain text output as before if it isn't or
if the environment variable NO_GTEST_JSON_OUTPUT is set.

The fake executor binaries are sensitive to parameter order. This commit
adds --gtest_output:json arguments to a number of tests added for the
new JSON parser. The argument order has been adjusted for the
invocations of those binaries.

Co-Authored-By: Craig Scott <craig.scott@crascit.com>
Co-Authored-By: Dennis Lambe Jr. <malsyned@malsyned.net>
2025-07-08 07:58:34 +10:00
Brad King
5525104cd0 Merge topic 'update-kwsys'
14891241ec Merge branch 'upstream-KWSys' into update-kwsys
9d2ef414ba KWSys 2025-07-07 (2f3a7814)
7c8e4687b9 ci: configure 'typos' to tolerate all 8-12 character hex identifiers

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10920
2025-07-07 13:23:47 -04:00
Brad King
ada38fa12a Merge topic 'cps-test-empty-config'
4bb4bbcf59 Tests: Actually test CPS generation with no config

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !10926
2025-07-07 11:26:52 -04:00
Brad King
14891241ec Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-07-07 (2f3a7814)
2025-07-07 11:23:55 -04:00
KWSys Upstream
9d2ef414ba KWSys 2025-07-07 (2f3a7814)
Code extracted from:

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

at commit 2f3a7814cf53af23809b2dcec1dbe5eed45cfb43 (master).

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

Daniel Pfeifer (5):
      fd4c4235 Reference test executables by target name
      0725a089 SystemInformation: Remove redundant attempt to use OSVERSIONINFO
      136db938 SystemInformation: Remove unused variable bIsWindows64Bit
      41d44dbe SystemInformation: Rewrite OSRelease and OSVersion on Windows
      7d0a468c TestsCxx: Add an application manifest for Windows
2025-07-07 11:23:54 -04:00
Brad King
ecb480fb38 Merge branch 'release-4.1' 2025-07-07 11:18:02 -04:00