summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'make-test-depend-on-all'Brad King2023-11-1310-0/+38
|\ | | | | | | | | | | | | | | | | | | 5e0c1777a3 Optionally make `test` target depend on `all` eaa00d4dfa Tests: Add case to verify that 'make test' does not 'make all' Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Jason Juang <jasjuang@gmail.com> Merge-request: !8956
| * Optionally make `test` target depend on `all`William Sciaroni2023-11-104-0/+9
| | | | | | | | Fixes: #8774
| * Tests: Add case to verify that 'make test' does not 'make all'Brad King2023-11-107-0/+29
| | | | | | | | | | Place it in a new `RunCMake.BuiltinTargets` umbrella test meant to cover behavior of targets builtin to CMake.
* | Merge topic 'link-deduplicate-libs'Brad King2023-11-13115-24/+480
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b99c42e57 Link step: Enable to configure deduplication of libraries 07501c1678 Link Step: Introduce EntriesProcessing class Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8946
| * | Link step: Enable to configure deduplication of librariesMarc Chevrier2023-11-09115-24/+480
| |/ | | | | | | | | | | | | | | | | Some platforms, Apple or Windows for instance, do not require to duplicate static libraries to resolve mutual dependencies. Moreover, Xcode version 15 emits a warning if a library is duplicated. On Windows, enable a better control of libraries order. Fixes: #20722, #25297
* | ctest_empty_binary_directory: Report more detail in failure messageBrad King2023-11-096-0/+24
|/
* Merge topic 'cuda_support_CMAKE_TRY_COMPILE_TARGET_TYPE'Brad King2023-11-083-0/+12
|\ | | | | | | | | | | | | d7642a7d42 CUDA: Support CMAKE_TRY_COMPILE_TARGET_TYPE of STATIC_LIBRARY Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8953
| * CUDA: Support CMAKE_TRY_COMPILE_TARGET_TYPE of STATIC_LIBRARYRobert Maynard2023-11-073-0/+12
| |
* | Merge topic 'cxx23'Brad King2023-11-082-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a0fabc4769 cmGlobalGeneratorFactory: Provide complete cmGlobalGenerator to deleter 85627a93c9 cmCTestBuildCommand: Avoid requiring complete cmGlobalGenerator type publicly 641c02a3ce cmList: Avoid using operator-> on input iterator e4483b8871 Tests: Avoid compiling call to dap::optional<dap::string>(nullptr) Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8950
| * | Tests: Avoid compiling call to dap::optional<dap::string>(nullptr)Brad King2023-11-072-3/+3
| | |
* | | Merge topic 'static-library-link-xcframework'Brad King2023-11-073-0/+12
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 7d19246138 Xcode: Fix linking against .xcframework from static libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8949
| * | Xcode: Fix linking against .xcframework from static librariesKyle Edwards2023-11-063-0/+12
| |/ | | | | | | Issue: #21752
* | Merge topic 'vs-CharacterSet'Brad King2023-11-073-0/+69
|\ \ | | | | | | | | | | | | | | | | | | cbddc66277 VS: Consider macros with values when determining CharacterSet Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8940
| * | VS: Consider macros with values when determining CharacterSetDeniz Bahadir2023-11-063-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to determine what character-set (Unicode, Multi-Byte, none) shall be set in the generated `*.vcxproj` files, CMake checks if one of the macros `_UNICODE` or `_SBCS` are defined. However, as these macros can be defined with or without a value, the check should always recognize these macros whether they are defined with a value or without. That is now assured by this commit. Fixes: #25379
* | | Merge topic 'Ninja-use-depslog'Brad King2023-11-0714-1/+359
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | bb7a0497ef cmTransformDepfile: warn when a depfile is not written to c22c473bde Tests/Ninja*/CustomCommandDepfile: check that deps are in the database b0177003e1 cmGlobalNinjaGenerator: tell `ninja` to actually read the depfile 45eff9145e cmAddCustomCommandCommand: use `cmStrCat` c6445c615b Tests/RunCMake/Ninja: fix subdir prefix check Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8911
| * | cmTransformDepfile: warn when a depfile is not written toBen Boeckel2023-11-011-0/+4
| | |
| * | Tests/Ninja*/CustomCommandDepfile: check that deps are in the databaseBen Boeckel2023-11-0112-0/+354
| | |
| * | Tests/RunCMake/Ninja: fix subdir prefix checkBen Boeckel2023-10-231-1/+1
| | | | | | | | | | | | If the output path prefix is empty, the directory is going to exist.
* | | Merge topic 'cmake-E-cat-stdin'Brad King2023-11-063-0/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ab72846794 cmake -E cat: Add ability to print standard input Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8942
| * | | cmake -E cat: Add ability to print standard inputKyle Edwards2023-11-033-0/+13
| | | |
* | | | Merge topic 'cmsystemtools-runsinglecommand-stdin'Kyle Edwards2023-11-034-1/+8
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | c4be9c914b cmSystemTools::RunSingleCommand(): Pass stdin to child process Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8941
| * | cmSystemTools::RunSingleCommand(): Pass stdin to child processKyle Edwards2023-11-024-1/+8
| | | | | | | | | | | | Fixes: #25383
| * | Merge topic 'cxxmodules-cmp0155-graceful-fallback-without-scanner' into ↵Brad King2023-11-015-13/+14
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | release-3.28 1f507580a1 cmGlobalGenerator: give context about module queries 889aa0354a CMP0155: ignore scanning for sources if no scanner is available Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8925
| * \ \ Merge topic 'modules-depends-via-target-objects' into release-3.28Brad King2023-10-318-1/+68
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 22da18b995 Fortran: Restore support for TARGET_OBJECTS providing modules 64d9240564 cmComputeLinkInformation: skip over linking to items for object purposes 035302b7e3 cmComputeLinkDepends: also copy the target from object link items 861876b936 Tests/ObjectLibrary: fix comment Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8923
| * \ \ \ Merge topic 'cxxmodules-ninja-forced-rsp-files' into release-3.28Brad King2023-10-303-0/+51
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09c962a6a4 Tests/CXXModules: test forced rsp files with ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8926
* | \ \ \ \ Merge topic 'if-check-file-permissions'Brad King2023-11-023-1/+171
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 337bc5662c if(): add operators IS_READABLE, IS_WRITABLE and IS_EXECUTABLE. Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8908
| * | | | | | if(): add operators IS_READABLE, IS_WRITABLE and IS_EXECUTABLE.Marc Chevrier2023-11-013-1/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Offers possibility to check for file or directory permissions.
* | | | | | | Merge topic 'cxxmodules-cmp0155-graceful-fallback-without-scanner'Brad King2023-11-015-13/+14
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | / / | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1f507580a1 cmGlobalGenerator: give context about module queries 889aa0354a CMP0155: ignore scanning for sources if no scanner is available Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8925
| * | | | | CMP0155: ignore scanning for sources if no scanner is availableBen Boeckel2023-11-015-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for a more graceful transition for projects using C++20 without scanner support (e.g., Clang 15 or GCC 13). While newer compilers will (needlessly) scan, it allows C++20-using projects to use older compilers without having to set `CMAKE_CXX_SCAN_FOR_MODULES` to support newer CMake minimum versions. Fixes: #25357
* | | | | | Merge topic 'modules-depends-via-target-objects'Brad King2023-10-318-1/+68
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 22da18b995 Fortran: Restore support for TARGET_OBJECTS providing modules 64d9240564 cmComputeLinkInformation: skip over linking to items for object purposes 035302b7e3 cmComputeLinkDepends: also copy the target from object link items 861876b936 Tests/ObjectLibrary: fix comment Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8923
| * | | | | Fortran: Restore support for TARGET_OBJECTS providing modulesBen Boeckel2023-10-307-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continue b665966933 (cmComputeLinkInformation: track OBJECT library dependencies, 2023-07-22) which added explicitly listed `OBJECT` libraries to the list of targets which the collator needs to consider. Now also consider targets which provide objects directly to the target via a `$<TARGET_OBJECT>` source lists. Also add tests which use target objects directly and through an `INTERFACE` library with target objects in its own sources. Fixes: #25365
| * | | | | Tests/ObjectLibrary: fix commentBen Boeckel2023-10-271-1/+1
| | | | | |
* | | | | | Merge topic 'cxxmodules-ninja-forced-rsp-files'Brad King2023-10-303-0/+51
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09c962a6a4 Tests/CXXModules: test forced rsp files with ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8926
| * | | | | Tests/CXXModules: test forced rsp files with ninjaBen Boeckel2023-10-283-0/+51
| | |/ / / | |/| | | | | | | | | | | | | Fixes: #25367
* | | | | Merge topic 'cmp0153-suggestion'Brad King2023-10-302-1/+4
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d3cc815c98 CMP0153: Add suggestion to use execute_process() 8313d26198 cmState::AddDisallowedCommand(): Allow additional warning info Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !8921
| * | | | CMP0153: Add suggestion to use execute_process()Kyle Edwards2023-10-272-1/+4
| |/ / /
* | | | Merge topic 'cpack-archive-dedup'Brad King2023-10-275-0/+93
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 770efceccb CPack: Avoid adding duplicate files to archive when combining components Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8839
| * | | | CPack: Avoid adding duplicate files to archive when combining componentsAtılhan Emre Dursunoğlu2023-10-265-0/+93
| | | | | | | | | | | | | | | | | | | | Fixes: #25280
* | | | | Merge topic 'unity-build-objc'Brad King2023-10-277-1/+111
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e218db1a90 Unity: Enable UNITY_BUILD for OBJC and OBJCXX files Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8906
| * | | | | Unity: Enable UNITY_BUILD for OBJC and OBJCXX filesRob Raguet-Schofield2023-10-267-1/+111
| | | | | |
* | | | | | Merge topic 'debugger-function-name-in-stacktrace'Brad King2023-10-272-0/+34
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c028425df9 Debugger: report function name in DAP stackframes Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8913
| * | | | | | Debugger: report function name in DAP stackframesDmitry.Neverov2023-10-262-0/+34
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before a file name and a line were returned, but they can be obtained by other means. Fixes: #25091
* | | | | | Merge topic 'fix-Wstrict-prototypes'Brad King2023-10-27271-330/+330
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 81022213f6 Modules: Fix clang -Wstrict-prototypes warnings 47c3334203 Source: Fix clang -Wstrict-prototypes warnings 264dcae5e4 Tests: Fix clang -Wstrict-prototypes warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8916
| * | | | | | Tests: Fix clang -Wstrict-prototypes warningsBrad King2023-10-26271-330/+330
| | |_|/ / / | |/| | | |
* | | | | | Merge topic 'hint-about-missing-extension-on-windows'Brad King2023-10-269-12/+24
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 186673ba0b cmGlobalGenerator: hint about missing extensions on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8914
| * | | | | | cmGlobalGenerator: hint about missing extensions on WindowsBen Boeckel2023-10-249-12/+24
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Discussed on Discourse: https://discourse.cmake.org/t/cross-compiling-from-a-windows-host-targeting-raspbian-32-bits-arm/9250
* | | | | | Merge topic 'iar-nightly'Brad King2023-10-2612-0/+177
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 37e44707bc IAR: Add tests covering IAR toolchains Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8909
| * | | | | IAR: Add tests covering IAR toolchainsFelipe Torrezan2023-10-2312-0/+177
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Run the tests only if enabled explicitly by an undocumented cache entry. We will enable it on hosts known to have the toolchains.
* | | | | Merge topic 'misc-warnings'Brad King2023-10-241-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6ed999674c Fix clang -Wdeprecated-pragma warnings by removing deprecated ATOMIC_VAR_INIT 162e017b2d Fix clang -Wstrict-prototypes by making main take void instead of nothing b373a22991 Fix clang -Wreserved-identifier by renaming an enum Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8905
| * | | | Fix clang -Wstrict-prototypes by making main take void instead of nothingSean McBride2023-10-201-1/+1
| | | | |