Commit Graph

68868 Commits

Author SHA1 Message Date
Brad King aeff709a27 Merge topic 'patch-load-cache-script-mode'
18ae68a97c load_cache: Mention script mode support (-P)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10241
2025-01-28 09:19:58 -05:00
Brad King 8d869546bb Merge branch 'release-3.31' 2025-01-28 08:42:29 -05:00
Brad King 00471550de Merge topic 'GoogleTest-variable-expansion'
c7884ceefa GoogleTest: Restore support for spaces in explicit WORKING_DIRECTORY

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10192
2025-01-28 08:42:28 -05:00
Brad King 2295d665f7 Merge topic 'GoogleTest-variable-expansion' into release-3.31
c7884ceefa GoogleTest: Restore support for spaces in explicit WORKING_DIRECTORY

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10192
2025-01-28 08:42:27 -05:00
Brad King ca7aab97fd Merge topic 'update-kwsys'
94902cd03c Merge branch 'upstream-KWSys' into update-kwsys
891e4d5418 KWSys 2025-01-27 (2fbdf7e5)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10239
2025-01-28 08:41:27 -05:00
Brad King 6eb7a927e1 Merge topic 'fileapi-reply-path-length'
1ae7497b6a fileapi: Restrict reply object file path lengths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9720
2025-01-28 08:40:06 -05:00
Brad King d6a7a83700 Merge topic 'fix-typos-found-by-pygrep-hooks'
bc4c71627a Help: Fix typos found by the `rst-backticks` hook
c833629508 Help: Fix typos found by the `rst-directive-colons` hook

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10237
2025-01-28 08:35:19 -05:00
Brad King 1a4170d33c Merge topic 'fix-cmStrCat-and-to_string'
d34971f455 Refactor: Eliminate redundant `std::to_string` as arg of `cmStrCat`

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10234
2025-01-28 08:31:35 -05:00
Brad King 38a9ff8b44 Merge topic 'pre-commit'
b83c5b2c83 pre-commit: Add `pygrep-hooks` repo and 3 hooks to check RST files
abe46bf9e1 pre-commit: Add the `clang-format` hook
8f4dd0558e pre-commit: Add the `typos` hook for extra spellchecking
54eba3a42a pre-commit: Add the `codespell` hook
244e3d314c pre-commit: Add the `sphinx-lint` hook
efa7c6aedf pre-commit: Add a hook to check whitespaces and conflict markers
2c06b9f429 pre-commit: Add a hook to fix missed EOL at the end of files
1861948755 pre-commit: Add a hook to check JSON files
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10143
2025-01-28 08:28:38 -05:00
Brad King 0e0fc63bd8 Merge topic 'codespell'
d2752135cb codespell: Fix typos found by version 2.4

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10236
2025-01-28 08:25:51 -05:00
Kitware Robot 80e86f6d13 CMake Nightly Date Stamp 2025-01-28 00:06:17 -05:00
Peter Kokot 18ae68a97c load_cache: Mention script mode support (-P)
When using the relevant load_cache(READ_WITH_PREFIX) signature, it also
works in script mode (cmake -P ...), unlike the 2nd obsolete signature.
2025-01-28 00:59:50 +01:00
Ihor Sofiichenko c7884ceefa GoogleTest: Restore support for spaces in explicit WORKING_DIRECTORY
Revise commit fc7aa3cd69 (tests: Preserve empty arguments in test
command lines, 2024-09-30, v3.31.0-rc1~33^2) to delay variable expansion
until code evaluation.  Otherwise we may parse the working directory
path as CMake language code.
2025-01-27 12:04:41 -05:00
Brad King 59113292b2 Merge topic 'install-parallel-doc-fix'
f1a80380ae Help: Improve language in INSTALL_PARALLEL doc

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10238
2025-01-27 11:21:49 -05:00
Brad King 3ffac3063d Merge topic 'doc-policy-deprecation-schedule'
3e0720a2ae Help: Add cmake_minimum_required(VERSION) example to cmake-policies(7)
085de39879 Help: Document policy transition schedule in cmake-policies(7)
60e302a539 Help: Drop policy scope from cmake-policies(7)
3b926b32e3 Help: Drop CMAKE_MINIMUM_REQUIRED_VERSION from cmake-policies(7)
ec9e5feb93 Help: Organize cmake-policies(7) by supported and unsupported policies
6be0fe22be Help: Mention CMAKE_POLICY_DEFAULT_CMP<NNNN> in cmake_minimum_required

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10222
2025-01-27 11:18:46 -05:00
Alex Turbov d2752135cb codespell: Fix typos found by version 2.4 2025-01-27 10:55:58 -05:00
Brad King 3e0720a2ae Help: Add cmake_minimum_required(VERSION) example to cmake-policies(7) 2025-01-27 10:35:04 -05:00
Brad King 085de39879 Help: Document policy transition schedule in cmake-policies(7)
Rewrite the introduction of the manual to focus on policies' role in
evolution of CMake and how projects should be updated to account for
them over time.

Issue: #26613
2025-01-27 10:35:04 -05:00
Brad King 60e302a539 Help: Drop policy scope from cmake-policies(7)
The policy stack is covered by the `cmake_policy`, `include`, and
`find_package` command documentation.  Avoid distracting readers with
such details in the main policy introduction.
2025-01-27 10:35:04 -05:00
Brad King 3b926b32e3 Help: Drop CMAKE_MINIMUM_REQUIRED_VERSION from cmake-policies(7)
The variable has little role with respect to policies, particularly
since introduction of the `...<policy_max>` syntax.  Furthermore,
any role it may have is primarily in CMake's own modules.
2025-01-27 10:35:04 -05:00
Brad King ec9e5feb93 Help: Organize cmake-policies(7) by supported and unsupported policies 2025-01-27 10:34:56 -05:00
Brad King 084f6055a8 Merge topic 'patch-CMAKE_OBJDUMP'
dc7aabf4d0 Help: Document CMAKE_OBJDUMP variable
4bd3519e89 CPack: Avoid mentioning internal CMake module in documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10224
2025-01-27 10:30:58 -05:00
Brad King 304f086b71 Merge topic 'doc-cmake_host_system_information-OS_NAME'
ff11a95962 Help: Clarify cmake_host_system_information OS_NAME

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Nicole Mazzuca <nicole.mazzuca@remarkable.no>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !10232
2025-01-27 10:26:33 -05:00
Brad King 16f9016605 Merge topic 'help-json'
7be01178a0 Help: JSON argument should be quoted

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10231
2025-01-27 10:24:45 -05:00
Brad King f0293e86c8 Merge topic 'linker-configuration'
3d2709c1ae Linker configuration: rely now on CMAKE_<LANG>_LINK_MODE variable.
0ba67171d9 Extend CMAKE_<LANG>_LINK_MODE support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10223
2025-01-27 10:23:35 -05:00
Brad King 94902cd03c Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-01-27 (2fbdf7e5)
2025-01-27 10:19:43 -05:00
KWSys Upstream 891e4d5418 KWSys 2025-01-27 (2fbdf7e5)
Code extracted from:

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

at commit 2fbdf7e5206f78f70a9effeaa8cfb4911fbe5727 (master).

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

Nikita Nemkin (2):
      98452164 RegularExpression: Add an optional offset parameter to find()
      0359bfbc RegularExpression: Fix match start/end values of unmatched groups
2025-01-27 10:19:43 -05:00
Martin Duffy f1a80380ae Help: Improve language in INSTALL_PARALLEL doc
Remove unneeded comma, clarify and link reference to Ninja generators, and substitute ``ON`` for enabled.
2025-01-27 09:41:59 -05:00
Stefan Wüthrich 1ae7497b6a fileapi: Restrict reply object file path lengths
Fixes: #23389
2025-01-27 09:49:19 +01:00
Kitware Robot 24a6891065 CMake Nightly Date Stamp 2025-01-27 00:08:14 -05:00
Alex Turbov b83c5b2c83 pre-commit: Add pygrep-hooks repo and 3 hooks to check RST files 2025-01-27 02:06:56 +04:00
Alex Turbov bc4c71627a Help: Fix typos found by the rst-backticks hook
The corresponding `pre-commit` configuration is coming in the
separate MR.

Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
2025-01-27 01:43:26 +04:00
Alex Turbov c833629508 Help: Fix typos found by the rst-directive-colons hook
The corresponding `pre-commit` configuration is coming in the
separate MR.

Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
2025-01-27 01:00:46 +04:00
Marc Chevrier 3d2709c1ae Linker configuration: rely now on CMAKE_<LANG>_LINK_MODE variable.
CMake now provides the CMAKE_<LANG>_LINK_MODE variable which specify how
the link step is done. So, the CMAKE_<LANG>_USING_LINKER_MODE variable
is no longer needed.
2025-01-26 14:45:21 +01:00
Marc Chevrier 0ba67171d9 Extend CMAKE_<LANG>_LINK_MODE support
* Add CMAKE_Swift_LINK_MODE
* Ensure correct definition for various clang usages on Windows
2025-01-26 14:45:21 +01:00
Kitware Robot 2eff8c0b15 CMake Nightly Date Stamp 2025-01-26 00:07:33 -05:00
Alex Turbov abe46bf9e1 pre-commit: Add the clang-format hook
The hook version is the same as the `.clang-format` config file.
2025-01-26 05:43:33 +04:00
Alex Turbov 8f4dd0558e pre-commit: Add the typos hook for extra spellchecking
Also, use it to spellcheck commit messages.
2025-01-26 05:38:56 +04:00
Alex Turbov 54eba3a42a pre-commit: Add the codespell hook
Also, use it to spellcheck commit messages.
2025-01-26 05:38:52 +04:00
Alex Turbov 244e3d314c pre-commit: Add the sphinx-lint hook 2025-01-26 05:34:18 +04:00
Alex Turbov efa7c6aedf pre-commit: Add a hook to check whitespaces and conflict markers
The hook uses settings from `.gitattributes`.
2025-01-26 05:34:18 +04:00
Alex Turbov 2c06b9f429 pre-commit: Add a hook to fix missed EOL at the end of files
For now some files from `Tests/` have been excluded. However,
some files could be really fixed and removed from exclude list.
2025-01-26 05:34:18 +04:00
Alex Turbov 1861948755 pre-commit: Add a hook to check JSON files 2025-01-26 05:34:17 +04:00
Alex Turbov 4b34c07205 pre-commit: Add a hook to check YAML files 2025-01-26 05:34:17 +04:00
Alex Turbov 3a73e1b8f4 pre-commit: Add a hook to strip trailing whitespaces on commit 2025-01-26 05:34:17 +04:00
Alex Turbov 8e832f0084 pre-commit: Add a hook to check files for mixed line endings 2025-01-26 05:34:17 +04:00
Alex Turbov de59765336 pre-commit: Add an initial configuration file
Add (except some meta-hooks) the `check-case-conflict` hook to
make sure the repo don't contain files that can cause a conflict
on case-insensitive filesystems.

Also, exclude third-party sources from further checks.
2025-01-26 05:34:15 +04:00
Alex Turbov d34971f455 Refactor: Eliminate redundant std::to_string as arg of cmStrCat
Plus optimize some other string operations in the modified files.
2025-01-26 04:03:38 +04:00
Brad King 8eff0d3351 Merge topic 'rel-src-cleanup'
00cfea965b gitattributes: Do not export lint config files in source archives

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10229
2025-01-25 08:06:46 -05:00
Brad King 7975ae0bb7 Merge topic 'clang-format-H'
c7323b004f clang-format: Apply formatting to files with upper-case .H extension

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10233
2025-01-25 08:04:43 -05:00