Commit Graph

36904 Commits

Author SHA1 Message Date
Kitware Robot f0cc688c10 CMake Nightly Date Stamp 2025-01-31 00:06:36 -05:00
Brad King 78bc455454 Merge topic 'update-kwsys'
768f2e00b3 Merge branch 'upstream-KWSys' into update-kwsys
7342114155 KWSys 2025-01-30 (936c606c)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10260
2025-01-30 08:51:07 -05:00
Brad King 3e64c6a56e Merge topic 'msvc-runtime-checks'
2b2344b412 MSVC: Add abstraction for runtime checks
49dcd1ce5d Help: Fix MSVC_DEBUG_INFORMATION_FORMAT description of example
2f8e643d9d CMP0141: Fix documentation copied from CMP0091

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex <leha-bot@yandex.ru>
Merge-request: !10214
2025-01-30 08:48:01 -05:00
Brad King a832d31474 Merge topic 'cmake_sarif_output'
abbe41578d cmake: Add SARIF diagnostics output support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !10139
2025-01-30 08:43:11 -05:00
Brad King 768f2e00b3 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-01-30 (936c606c)
2025-01-30 06:53:36 -05:00
Kitware Robot 0c3f99d3fd CMake Nightly Date Stamp 2025-01-30 00:09:10 -05:00
AJIOB 2b2344b412 MSVC: Add abstraction for runtime checks
Replace our hard-coded default for `/RTC1` with a first-class
abstraction to select runtime checks from an enumeration of logical
names.  Add a `MSVC_RUNTIME_CHECKS` target property and corresponding
`CMAKE_MSVC_RUNTIME_CHECKS` variable.

Removing the old default flag requires a policy because existing
projects may rely on string processing to edit them and choose
runtime checks under the old behavior.  Add policy CMP0184 to
provide compatibility.

Fixes: #26614
2025-01-29 13:07:41 -05:00
Brad King e806a490b6 Merge topic 'update-kwsys'
10742bb679 Merge branch 'upstream-KWSys' into update-kwsys
1f29e3eaf5 KWSys 2025-01-29 (6f535da1)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10247
2025-01-29 11:43:21 -05:00
Brad King baeaffd79f Merge topic 'windows-longPathAware'
329643556d Windows: Enable longPathAware for cmake binaries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10249
2025-01-29 11:38:56 -05:00
Brad King ec7cc80370 Merge topic 'patch-lower-case-style'
4e6a13f211 Use lower case style for commands

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Alex Turbov <i.zaufi@gmail.com>
Merge-request: !10245
2025-01-29 11:37:51 -05:00
Brad King bc137d6225 Merge topic 'compile_only_genex_support_object_libraries'
c87004fdc3 COMPILE_ONLY: Genex now stops object libraries from linking

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !10240
2025-01-29 11:34:08 -05:00
Brad King a1c96f95fc Merge topic 'fix-spelling-typo-found-by-codespell-2.4'
7d4086d239 codespell: Fix one more typo found by version 2.4

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10246
2025-01-29 11:25:59 -05:00
Brad King 10742bb679 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-01-29 (6f535da1)
2025-01-29 09:03:39 -05:00
Daniel Tierney abbe41578d cmake: Add SARIF diagnostics output support
Closes: #26587
2025-01-29 08:43:19 -05:00
Kitware Robot 35fc696c80 CMake Nightly Date Stamp 2025-01-29 00:06:59 -05:00
Peter Kokot 4e6a13f211 Use lower case style for commands
Where possible this syncs the CS for command names:

- check_c_source_compiles()
- check_cxx_compiler_flag()
- check_cxx_source_compiles()
- check_cxx_symbol_exists()
- check_include_file_cxx()
- check_include_file()
- check_include_files()
- check_library_exists()
- check_source_compiles()
- check_struct_has_member()
- check_symbol_exists()
- check_type_size()
- cmake_dependent_option()
- cmake_parse_arguments()
- feature_summary()
- file()
- find_package_handle_standard_args()
- if(), endif...
- install(FILES)
- list()
- message()
- pkg_check_modules()
- select_library_configurations()
- set_package_info()
- test_big_endian()
2025-01-28 13:51:46 -05:00
Morten Engelhardt Olsen 329643556d Windows: Enable longPathAware for cmake binaries
Most of CMake's file-system accesses already use UNC encoded paths to
avoid the Maximum Path Length Limitation [1].  Enable `longPathAware` in
the manifest so Windows APIs like `GetCurrentDirectoryW` can also exceed
`MAX_PATH`.

[1] https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#functions-without-max_path-restrictions

Issue: #25936
2025-01-28 13:40:29 -05:00
Robert Maynard c87004fdc3 COMPILE_ONLY: Genex now stops object libraries from linking
Previously we didn't properly exclude $<COMPILE_ONLY:OBJECT lib>
from the right hand side of  `target_link_libraries`.

Fix the update that commit 73337cb383 (LINK_LIBRARIES: Evaluate
separately for linking and usage requirements, 2022-03-22,
v3.24.0-rc1~404^2~2) made to `AddObjectEntries`.

Fixes: #26642
2025-01-28 10:01:00 -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
Alex Turbov 7d4086d239 codespell: Fix one more typo found by version 2.4
Was missed in the MR 10236 ;-(
2025-01-28 17:39:03 +04: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
Kitware Robot 80e86f6d13 CMake Nightly Date Stamp 2025-01-28 00:06:17 -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
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
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
Kitware Robot 2eff8c0b15 CMake Nightly Date Stamp 2025-01-26 00:07:33 -05: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 bcc29fd68f Merge topic 'update-kwsys'
8c36c13081 Merge branch 'upstream-KWSys' into update-kwsys
ca5cdc6741 KWSys 2025-01-24 (2535f5f1)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10228
2025-01-25 08:03:00 -05:00
Kitware Robot 932634133b CMake Nightly Date Stamp 2025-01-25 00:08:39 -05:00
Brad King 8c36c13081 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-01-24 (2535f5f1)
2025-01-24 09:55:57 -05:00
Brad King ac601c8a51 Merge topic 'clang-format-18'
0b96ae1f6a Revise C++ coding style using clang-format with "east const"
6ef947ea97 Empty commit at end of history preceding clang-format "east const" transition
08f1cae4e8 clang-format: Enforce "east const" qualifier placement
b2ba64add9 Revise C++ coding style using clang-format-18
c03bab9610 Empty commit at end of history preceding clang-format-18 style transition
e641442149 clang-format.bash: update to clang-format-18

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10225
2025-01-24 09:53:52 -05:00
Kitware Robot 709de0858d CMake Nightly Date Stamp 2025-01-24 00:05:47 -05:00
Kitware Robot 0b96ae1f6a Revise C++ coding style using clang-format with "east const"
Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`, now with "east const" enforcement.
Use `clang-format` version 18.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.

Issue: #26123
2025-01-23 13:09:50 -05:00
Kitware Robot b2ba64add9 Revise C++ coding style using clang-format-18
Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`.  Use `clang-format` version 18.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.

Fixes: #26123
2025-01-23 11:43:06 -05:00
Brad King 1d4d4362d9 Merge topic 'remove-old-compatibility'
77f71ad4e2 Remove compatibility with CMake versions older than 3.5
fb1bd1d330 CMP0065: Remove support for OLD behavior
d9dd38cccf CMP0064: Remove support for OLD behavior
d88047c329 Remove compatibility with CMake versions older than 3.3
ac1a9cb160 CMP0063: Remove support for OLD behavior
36fffb673a CMP0062: Remove support for OLD behavior
789a7d73d4 CMP0061: Remove support for OLD behavior
3dc19e24cb CMP0060: Remove support for OLD behavior
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10210
2025-01-23 09:36:59 -05:00
Brad King 63924c4afa Merge topic 'ci-typos'
c3777c1536 ci: Extend spellcheck job with 'typos' tool
d11552c2d9 codespell: Exclude paths by patterns following pre-commit check conventions
11d0a631d4 codespell: Split multi-valued configuration across multiple lines
54dfadaf5a ci: Rename "codespell" job to more general name "spellcheck"
17fc94e5e3 ci: Add typos 1.29.4 to Fedora base image
ddf8220572 ci: Use Fedora 41 default flang package now that it is new enough
1e2d19ea4f gitignore: Tell tools honoring .gitignore to ignore .git too
0d0a94bcfb Tests: Fix Fortran syntax for initialized variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10211
2025-01-23 09:34:02 -05:00
Brad King f66eee89d1 Merge topic 'update-kwsys'
4cd8b15c8d Merge branch 'upstream-KWSys' into update-kwsys
d6d1695d89 KWSys 2025-01-22 (22ffdf26)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10215
2025-01-23 09:31:15 -05:00
Kitware Robot f2082cc660 CMake Nightly Date Stamp 2025-01-23 00:07:32 -05:00
Brad King 4cd8b15c8d Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-01-22 (22ffdf26)
2025-01-22 11:12:29 -05:00
Brad King 77f71ad4e2 Remove compatibility with CMake versions older than 3.5
This compatibility has been deprecated since commit 3a4791548d
(Deprecate compatibility with CMake versions older than 3.5, 2023-02-09,
v3.27.0-rc1~508^2).  The behavior itself has been deprecated
since CMake 3.5.

Issue: #26613
2025-01-22 10:40:55 -05:00
Brad King fb1bd1d330 CMP0065: Remove support for OLD behavior 2025-01-22 10:40:55 -05:00
Brad King d9dd38cccf CMP0064: Remove support for OLD behavior 2025-01-22 10:40:55 -05:00
Brad King d88047c329 Remove compatibility with CMake versions older than 3.3
This compatibility has been deprecated since commit 3a4791548d
(Deprecate compatibility with CMake versions older than 3.5, 2023-02-09,
v3.27.0-rc1~508^2).  The behavior itself has been deprecated
since CMake 3.3.

Issue: #26613
2025-01-22 10:40:54 -05:00
Brad King ac1a9cb160 CMP0063: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00
Brad King 36fffb673a CMP0062: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00
Brad King 789a7d73d4 CMP0061: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00
Brad King 3dc19e24cb CMP0060: Remove support for OLD behavior 2025-01-22 10:40:54 -05:00