summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ExternalProject: Update foreach() calls to use IN LISTS and IN ITEMSCraig Scott2024-01-271-13/+13
|
* ExternalProject: Remove N^2 add_dependencies() callsCraig Scott2024-01-271-5/+3
| | | | | | | | | | ExternalProject_Add_StepDependencies() contained a foreach() loop that had another foreach() loop inside it iterating over the same set of values (the dependencies). This resulted in add_dependencies() calls that added the same dependencies to the step target N^2 times. A single call to add_dependencies() with the list of dependencies provides the necessary relationships without the N^2 behavior, and it removes the inner foreach() loop.
* Merge topic 'stdio-streams-always'Brad King2024-01-261-28/+15
|\ | | | | | | | | | | | | 96010cc968 Ensure stdin, stdout, stderr FILE streams are open on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9189
| * Ensure stdin, stdout, stderr FILE streams are open on WindowsBrad King2024-01-251-28/+15
| | | | | | | | | | | | | | | | Extend commit c85524a94a (Ensure stdin, stdout, and stderr pipes are always open, 2019-05-02, v3.15.0-rc1~171^2) to cover the `stdin`, `stdout`, and `stderr` FILE streams from `<stdio.h>`. Issue: #25625
* | Merge topic 'ctest-tests-from-file'Brad King2024-01-2617-0/+207
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 701029726f ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILE dbacc1d5a8 ctest: add command line option to exclude tests listed in a given file 022f20f663 ctest: add command line option to run the tests listed in a given file Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !9128
| * | ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILEAlex Neundorf2024-01-258-0/+58
| | | | | | | | | | | | | | | | | | | | | These options can be used to specify files which can be used to restrict the set of tests that will be executed. Fixes: #25455
| * | ctest: add command line option to exclude tests listed in a given fileAlex Neundorf2024-01-258-5/+61
| | | | | | | | | | | | | | | | | | | | | Add `--exclude-from-file <filename>` to exclude the tests listed in the given file. Issue: #25455
| * | ctest: add command line option to run the tests listed in a given fileAlex Neundorf2024-01-259-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | Add `--tests-from-file <filename>` to run only the tests listed in the given file. The test names must match exactly, no regexps or something. The listed tests can still be filtered with a regexp using -R. Issue: #25455
* | | Merge topic 'simplify-emacs-cmake-mode'Brad King2024-01-261-14/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 91336c7469 cmake-mode.el: Simplify jumping to begin/end of functions/macros Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9185
| * | | cmake-mode.el: Simplify jumping to begin/end of functions/macrosJoerg Bornemann2024-01-251-14/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was spawned by the desire to use `narrow-to-defun` in CMake files. However, there was no "CMake version" of that function, and it turns out that we don't need one if we make `beginning-of-defun` and `end-of-defun` work in `cmake-mode`. In the setup code of `cmake-mode` we now set the local variables `beginning-of-defun-function` and `end-of-defun-function`. This makes `beginning-of-defun` and `end-of-defun` work as expected. Functions that use this facility also work now: `mark-defun` and `narrow-to-defun` and possibly others. We remove `cmake-mark-defun` since it's superfluous now. We remove the defun-related key bindings since the standard functions that are bound globally work fine with this patch.
* | | Merge branch 'release-3.28'Brad King2024-01-260-0/+0
|\ \ \
| * \ \ Merge topic 'revert-FindFreetype-use-config' into release-3.28Brad King2024-01-261-98/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b5725ae619 FindFreetype: Revert use of upstream freetype cmake package Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9187
* | \ \ \ Merge topic 'revert-FindFreetype-use-config'Brad King2024-01-261-98/+0
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | b5725ae619 FindFreetype: Revert use of upstream freetype cmake package Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9187
| * | | | FindFreetype: Revert use of upstream freetype cmake packageBrad King2024-01-251-98/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The upstream freetype cmake package uses generator expressions and imported target to express its dependencies. That's fine on its own. However, our use of it since commit d83d925045 (FindFreetype: use `freetype-config.cmake` if available, 2023-09-06, v3.28.0-rc1~130^2) causes the `FREETYPE_LIBRARIES` result variable to reference those imported targets and create a package-level dependency for clients that did not exist previously. Revert that change for now, along with its follow-up fixes. Further investigation will be needed to solve the motivating use case another way. Fixes: #25635
* | | | | Merge branch 'release-3.28'Brad King2024-01-260-0/+0
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Merge topic 'find-matlab-docs-mcr-version-mapping' into release-3.28Brad King2024-01-261-1/+11
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 29fece7ef3 FindMatlab: Document that version mappings do not apply to MCR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9184
* | \ \ \ \ Merge topic 'find-matlab-docs-mcr-version-mapping'Brad King2024-01-261-1/+11
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 29fece7ef3 FindMatlab: Document that version mappings do not apply to MCR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9184
| * | | | | FindMatlab: Document that version mappings do not apply to MCRHermann von Kleist2024-01-251-1/+11
| | | | | |
* | | | | | Merge branch 'release-3.28'Brad King2024-01-260-0/+0
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Merge topic 'find-matlab-fix-nonzero-patch-version' into release-3.28Brad King2024-01-261-4/+5
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b1e27b1b9d FindMatlab: Some versions use major.minor.patch in the registry Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9183
* | \ \ \ \ \ Merge topic 'find-matlab-fix-nonzero-patch-version'Brad King2024-01-261-4/+5
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b1e27b1b9d FindMatlab: Some versions use major.minor.patch in the registry Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9183
| * | | | | | FindMatlab: Some versions use major.minor.patch in the registryHermann von Kleist2024-01-251-4/+5
| | |/ / / / | |/| | | | | | | | | | | | | | | | Fixes #25631.
* | | | | | CMake Nightly Date StampKitware Robot2024-01-261-1/+1
| | | | | |
* | | | | | Merge branch 'release-3.28' into masterBrad King2024-01-250-0/+0
|\ \ \ \ \ \ | | |/ / / / | |/| | / / | |_|_|/ / |/| | | |
| * | | | Merge topic 'tests-c99' into release-3.28Brad King2024-01-252-11/+17
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | a10d2ad397 Tests: Improve C compatibility of LoadCommand tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9186
| | * | | Tests: Improve C compatibility of LoadCommand testsFlorian Weimer2024-01-252-11/+17
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code used `char **` and `const char **`` types as if they were the same. But they are distinct types in C, so when passing these pointers as function arguments, their types have to match. Future C compilers will treat this as an error, similar to what C++ compilers do today.
* | | | Merge branch 'release-3.28'Brad King2024-01-250-0/+0
|\ \ \ \ | |/ / /
| * | | Merge topic 'revert-replace-cmsysprocess-with-cmuvprocesschain' into ↵Brad King2024-01-2532-1225/+1186
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | release-3.28 bcbb212df7 Revert use of libuv for process execution for 3.28 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9176
* | \ \ \ Merge topic 'revert-replace-cmsysprocess-with-cmuvprocesschain' with -s oursBrad King2024-01-250-0/+0
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the `-s ours` merge strategy to avoid actually reverting the original changes inpost-3.28 development. bcbb212df7 Revert use of libuv for process execution for 3.28 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9176
| * | | | Revert use of libuv for process execution for 3.28Brad King2024-01-2432-1225/+1186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wide use of CMake 3.28.{1,0[-rcN]} has uncovered some hangs and crashes in libuv SIGCHLD handling on some platforms, particularly in virtualization environments on macOS hosts. Although the bug does not seem to be in CMake, we can restore stability in the CMake 3.28 release series for users of such platforms by reverting our new uses of libuv for process execution. Revert implementation changes merged by commit 4771544386 (Merge topic 'replace-cmsysprocess-with-cmuvprocesschain', 2023-09-06, v3.28.0-rc1~138), but keep test suite updates. Issue: #25414, #25500, #25562, #25589
* | | | | Merge branch 'release-3.28'Brad King2024-01-250-0/+0
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Merge topic 'cmuvprocesschain' into release-3.28Brad King2024-01-2510-52/+38
| |\ \ \ \ | | |/ / / | | | / / | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | adb3e13d32 cmUVProcessChain: Tolerate fileno() of invalid FILE stream b6e4e4babc cmUVProcessChain: Simplify SetExternalStream usage 116bb2b70f cmUVProcessChain: Simplify builder initialization d32c30906a Tests: Add missing include in testUVProcessChainHelper on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9181
* | | | Merge topic 'cmuvprocesschain'Brad King2024-01-2510-52/+38
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adb3e13d32 cmUVProcessChain: Tolerate fileno() of invalid FILE stream b6e4e4babc cmUVProcessChain: Simplify SetExternalStream usage 116bb2b70f cmUVProcessChain: Simplify builder initialization d32c30906a Tests: Add missing include in testUVProcessChainHelper on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9181
| * | | cmUVProcessChain: Tolerate fileno() of invalid FILE streamBrad King2024-01-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, in a GUI process without a console, the `std{in,out,err}` standard FILE streams may not be open. Avoid passing an invalid file descriptor to the child process, and let libuv attach NUL instead. Fixes: #25625
| * | | cmUVProcessChain: Simplify SetExternalStream usageBrad King2024-01-249-44/+27
| | | | | | | | | | | | | | | | | | | | It is commonly called with the `fileno()` of a `FILE*` stream, so accept the latter directly.
| * | | cmUVProcessChain: Simplify builder initializationBrad King2024-01-242-8/+3
| | | |
| * | | Tests: Add missing include in testUVProcessChainHelper on WindowsBrad King2024-01-241-0/+4
| |/ / | | | | | | | | | We use `STATUS_ACCESS_VIOLATION` from `windows.h`.
* | | Merge topic 'cpack-wix-msi-status'Brad King2024-01-252-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 3ed275bbb6 CPack/WiX: Fix installer status text Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9182
| * | | CPack/WiX: Fix installer status textBrad King2024-01-242-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, installers displayed extra text on some Windows versions: File: [1], Directory: [9], Size [6] Add an option to our WiX templates to suppress that. Fixes: #25634
* | | | Merge topic 'IntelLLVM-isystem-flag'Brad King2024-01-252-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8218aed118 IntelLLVM: support marking include paths as SYSTEM directories Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8722
| * | | | IntelLLVM: support marking include paths as SYSTEM directoriesBen Boeckel2024-01-242-0/+12
| |/ / / | | | | | | | | | | | | | | | | | | | | Also learn how to suppress warnings when possible. See: https://discourse.cmake.org/t/icx-on-windows-supports-external-i/8739
* | | | Merge topic 'swift-windows'Brad King2024-01-259-28/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b2129a14f4 Tests: Fix SwiftMix tests' runtime library selection on Windows 4f49f7fc0b Tests: Fix SwiftOnly test on Windows 2dec0c0308 Tests: Fix RunCMake.Swift expected output on Windows 79f1f509b1 Tests: Fix RunCMake.Swift's build output checks Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jeremy Day <jadaytime@gmail.com> Merge-request: !9169
| * | | | Tests: Fix SwiftMix tests' runtime library selection on WindowsBrad King2024-01-242-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Swift on Windows provides only a release runtime. Use it for C and CXX too, in all configurations, to match. Issue: #25573 Suggested-by: Saleem Abdulrasool <compnerd@compnerd.org>
| * | | | Tests: Fix SwiftOnly test on WindowsEvan Wilde2024-01-242-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add public symbols to SubA and SubB. The test was broken due to a broken build graph. The build graph expects libraries to emit the `.lib` file. `link.exe` only emits the implib if the library exports at least one symbol. Because these two libraries were empty, nothing was generated. Fixing by adding a public symbol to both libraries. Issue: #25573
| * | | | Tests: Fix RunCMake.Swift expected output on WindowsEvan Wilde2024-01-244-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Artifact file extensions differ. Issue: #25573
| * | | | Tests: Fix RunCMake.Swift's build output checksBrad King2024-01-241-20/+22
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2024-01-251-1/+1
| |/ / / |/| | |
* | | | Merge topic 'cpack-rpm-threads'Brad King2024-01-241-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 453742ae88 CPack/RPM: Enable rpm threads during package generation Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9178
| * | | | CPack/RPM: Enable rpm threads during package generationElijah Zarezky2024-01-231-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, `w7.xzdio` only used a single CPU core. Honor `CPACK_THREADS`: `w7T${CPACK_THREADS}.xzdio` uses the specified number of threads. `w7T.xzdio` uses all available CPU cores. Fixes: #25615
* | | | | Merge topic 'validate_read-only_target_properties'Brad King2024-01-2421-80/+881
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0cfd8fe8ad cmTarget: Don't allow setting read-only properties Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9133