Brad King
bc093eefab
Merge topic 'ctest-subprocess'
...
cb5f136c66 ctest: Prevent infinite loop in ctest_run_script(NEW_PROCESS)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10286
2025-02-05 09:03:08 -05:00
Brad King
06278ed352
Merge topic 'llvm-rc'
...
a25a4abc01 llvm-rc: Fix regression on .rc sources with LLVM/Clang tooling
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10285
2025-02-05 09:00:30 -05:00
Kitware Robot
b11085c2be
CMake Nightly Date Stamp
2025-02-05 00:06:31 -05:00
Nikita Nemkin
cb5f136c66
ctest: Prevent infinite loop in ctest_run_script(NEW_PROCESS)
...
ctest passes an internal -SR argument to inform a subprocess which
script to run. Because all arguments are propagated to the subprocess,
nested subprocess receives multiple -SR arguments and re-runs
the parent script in addition to its own, leading to a loop.
Ignore redundant -SR arguments on input and also filter out parent's
-SR argument when constructing a child process.
Fixes : #8837
2025-02-04 20:19:10 +05:00
Alex Overchenko
a25a4abc01
llvm-rc: Fix regression on .rc sources with LLVM/Clang tooling
...
Refactoring in commit 2b2344b412 (MSVC: Add abstraction for runtime
checks, 2025-01-22) switched to using local compiler id variables to
recognize compilers that target the MSVC ABI. However, those variables
may be modified modified in a special case for `lang == "RC"` that does
not apply to the ABI check. Check the target ABI before applying the
special case.
Fixes : #26663
2025-02-04 09:16:02 -05:00
Brad King
8dfb1f40b7
Merge topic 'execute_process-cmd-bat'
...
74c9d40876 execute_process: Fix invocation of .cmd/.bat with spaces
104ca10208 cmWorkerPool: Adopt MaybePrependCmdExe calls to reduce duplication
cf7ba6d43d cmWorkerPool: Convert RunCommand signature to move semantics
c091fd1420 cmUVProcessChain: Convert AddCommand signature to move semantics
c1f6b04176 cmSystemTools: Teach MaybePrependCmdExe to always use backslashes
817b3967f8 cmSystemTools: Teach MaybePrependCmdExe to return GetShortPathNameW failure
611a3000f7 cmSystemTools: Make MaybePrependCmdExe case-insensitive
98fed0f116 cmSystemTools: Adopt MaybePrependCmdExe
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10270
2025-02-04 09:02:48 -05:00
Brad King
568a9795a6
Merge topic 'ci-fedora41-dnf-cache'
...
f398a517be ci: Update to rebuilt Fedora base images
e9fb64f3b7 Source: Drop incorrect class documentation that had typos
2844296c7b FindMPI: Fix typo in comment
72cce810ce ci(fedora41-hip): update the image in sync w/ `fedora41`
fa08bd803d ci(fedora41): refactor tests removal from Python packages
0e5159656a ci(fedora41): split install prerequisites and build for Rust packages
88c5cf809a ci(fedora41): split install prerequisites and build RBEnv into separate phases
86e96322eb ci(fedora41): tune RVM build to speedup and minimize the final image
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10283
2025-02-04 09:00:59 -05:00
Brad King
e2ab33d689
Merge topic 'instrumentation-ctest-find-labels'
...
1595713596 instrumentation: Fix expected location of Labels when using CTest launchers
d2a3d596d6 instrumentation: Fix expected location of Labels when using CTest launchers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10264
2025-02-04 08:51:11 -05:00
Kitware Robot
c10cb0fde9
CMake Nightly Date Stamp
2025-02-04 00:06:17 -05:00
Brad King
e9fb64f3b7
Source: Drop incorrect class documentation that had typos
2025-02-03 12:03:07 -05:00
Brad King
0c5898558e
Merge topic 'find-cps-components'
...
894f256a12 find_package: Find CPS components
ac20cd43c0 find_package: Fix reporting of transitive dependency errors
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10262
2025-02-03 10:07:25 -05:00
Brad King
56ee75a135
Merge topic 'create-test-source-list-extern'
...
78983cb85e create_test_source_list: declare functions as `extern`
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10274
2025-02-03 10:06:12 -05:00
Brad King
74c9d40876
execute_process: Fix invocation of .cmd/.bat with spaces
...
The `CreateProcessW` documentation states "to run a batch file, you must
start the command interpreter". Use `cmd /c the.bat` to run batch files.
Also, use a "short path" to the `.bat` file if needed to avoid spaces.
Previously this worked in some cases only due to undocumented behavior
of `CreateProcessW` when given a `.bat` file.
Fixes : #26655
2025-02-03 09:13:26 -05:00
Brad King
104ca10208
cmWorkerPool: Adopt MaybePrependCmdExe calls to reduce duplication
2025-02-03 09:13:26 -05:00
Brad King
cf7ba6d43d
cmWorkerPool: Convert RunCommand signature to move semantics
2025-02-03 09:13:26 -05:00
Brad King
c091fd1420
cmUVProcessChain: Convert AddCommand signature to move semantics
2025-02-03 09:13:26 -05:00
Brad King
c1f6b04176
cmSystemTools: Teach MaybePrependCmdExe to always use backslashes
2025-02-03 09:13:18 -05:00
Brad King
817b3967f8
cmSystemTools: Teach MaybePrependCmdExe to return GetShortPathNameW failure
2025-02-03 09:09:29 -05:00
Martin Duffy
1595713596
instrumentation: Fix expected location of Labels when using CTest launchers
2025-02-03 09:08:44 -05:00
Brad King
611a3000f7
cmSystemTools: Make MaybePrependCmdExe case-insensitive
2025-02-03 09:05:47 -05:00
Kitware Robot
6ca13692a8
CMake Nightly Date Stamp
2025-02-03 00:04:56 -05:00
Brad King
d65f522a50
Merge topic 'FindRuby-compat-vars'
...
2d86cf314f FindRuby: Drop upper-case RUBY_ results in favor of Ruby_ variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10273
2025-02-02 07:03:10 -05:00
Kitware Robot
321b71cfde
CMake Nightly Date Stamp
2025-02-02 00:14:20 -05:00
Brad King
fddb15f67b
Merge topic 'use-launchers'
...
7d2a6bc67d launchers: issue a message when rules are not defined
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10268
2025-02-01 07:17:58 -05:00
Brad King
765eb70fa0
Merge topic 'cpack-tar'
...
09d5a4d7f0 CPack: add uncompressed TAR support
9d4be239b2 Help: Improve CPack Archive generator format list layout
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10265
2025-02-01 07:16:43 -05:00
Brad King
2d86cf314f
FindRuby: Drop upper-case RUBY_ results in favor of Ruby_ variables
...
Add policy CMP0185 for compatibility.
Fixes : #26640
2025-02-01 07:12:30 -05:00
Matthew Woehlke
894f256a12
find_package: Find CPS components
...
Implement finding components of CPS packages. Specifically, reject any
candidate packages that don't provide all required components, and
ignore appendices that don't provide requested (required or optional)
components. This applies to both top-level searches and also searching
for package dependencies.
2025-02-01 06:44:43 -05:00
Matthew Woehlke
ac20cd43c0
find_package: Fix reporting of transitive dependency errors
...
Fix find_package to set an error message when trying to find
dependencies of a CPS package fails. This fixes the command previously
reporting "find_package unknown error" for such failures.
2025-02-01 06:20:14 -05:00
Kitware Robot
05627bffbc
CMake Nightly Date Stamp
2025-02-01 00:09:00 -05:00
Ben Boeckel
78983cb85e
create_test_source_list: declare functions as extern
...
This avoids linting thinking that `func_name` can be declared `static`.
It is actually in a separate file and found at link time, so explicitly
mark it as such.
2025-01-31 22:39:25 +01:00
Brad King
98fed0f116
cmSystemTools: Adopt MaybePrependCmdExe
2025-01-31 11:52:09 -05:00
Johnny Jazeix
09d5a4d7f0
CPack: add uncompressed TAR support
...
Fixes : #26646
2025-01-31 10:11:32 -05:00
Daniel Pfeifer
7d2a6bc67d
launchers: issue a message when rules are not defined
2025-01-31 14:04:02 +01:00
Kitware Robot
f0cc688c10
CMake Nightly Date Stamp
2025-01-31 00:06:36 -05:00
Martin Duffy
d2a3d596d6
instrumentation: Fix expected location of Labels when using CTest launchers
2025-01-30 14:07:49 -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