summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'backport-vs-sdk-selection' into vs-sdk-selectionBrad King2023-08-1010-51/+73
|\
| * VS: Select latest Windows SDK even when targeting Windows 8.1 and belowBrad King2023-08-102-5/+9
| | | | | | | | | | | | | | | | | | The policy added by commit f90c8ab54e (VS: Select latest available Windows SDK version by default, 2023-04-03, v3.27.0-rc1~206^2~1) applied only when targeting Windows 10+. Apply it to older versions too. Fixes: #25170 Issue: #16202
| * VS: Teach CMAKE_GENERATOR_PLATFORM to support Windows 8.1 SDK selectionBrad King2023-08-101-0/+11
| | | | | | | | | | | | | | Honor an explicit `version=8.1` field value regardless of the Windows target version. Issue: #25170
| * VS: Teach CMAKE_GENERATOR_PLATFORM to use Windows 10 SDKs for older versionsBrad King2023-08-109-24/+33
| | | | | | | | | | | | | | Honor an explicit `version=` field selecting a Windows 10 SDK regardless of the Windows target version. Issue: #25170
| * Tests: Remove redundant condition in RunCMake.GeneratorPlatform testBrad King2023-08-101-23/+21
| |
| * Merge topic 'file-GENERATE-arg-parsing' into release-3.27Brad King2023-08-084-0/+10
| |\ | | | | | | | | | | | | | | | | | | | | | 88f90a72f1 file(GENERATE): Restore INPUT|CONTENT parse checking Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8694
| * \ Merge topic 'cmList-append-regression' into release-3.27Brad King2023-08-081-4/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f9f96151a cmList: Fix performance regression in append/prepend Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8684
| | * | cmList: Fix performance regression in append/prependMarc Chevrier2023-08-041-4/+4
| | | | | | | | | | | | | | | | Fixes: #25147
* | | | Merge topic 'file-GENERATE-arg-parsing'Brad King2023-08-084-0/+10
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | 88f90a72f1 file(GENERATE): Restore INPUT|CONTENT parse checking Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8694
| * | | file(GENERATE): Restore INPUT|CONTENT parse checkingEvan Wilde2023-08-074-0/+10
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit bff468c988 (cmFileCommand: Use cm::optional for keyword argument presence, 2022-06-30, v3.25.0-rc1~512^2) accidentally broke the check that the input argument is either `INPUT` or `CONTENT`. The check is supposed to fail when arguments are passed in the wrong order. For example: file(GENERATE OUTPUT ... TARGET <target> CONTENT <content>) Prior to this fix, the input method would be CONTENT, but because the first parsed keyword is not `CONTENT`, `inputIsContent` would be false. The first parsed keyword isn't INPUT either, so we would not continue into the error condition. CMake would then try to handle this as an input file, when there isn't one, resulting in uninitialized memory usage and segfaults or corruption later on. Fixes: #25169
* | | Merge topic 'cmList-append-regression'Brad King2023-08-081-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ee5edf77db Merge branch 'backport-3.27-cmList-append-regression' into cmList-append-regression a9a34edc82 cmList: Fix performance regression in append/prepend 7f9f96151a cmList: Fix performance regression in append/prepend Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8684
| * | | cmList: Fix performance regression in append/prependMarc Chevrier2023-08-041-4/+4
| | | | | | | | | | | | | | | | Fixes: #25147
* | | | Merge topic 'cxxmodules-try-compile'Brad King2023-08-0719-10/+86
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be53c75852 cmExperimental: recycle the C++ modules API UUID deb1c3cbd5 cmCoreTryCompile: forward module-related binutils variables b768d293c5 cmCoreTryCompile: use the source type context for source files 93993c7ad4 cmArgumentParser: support storing a context value with parsing c9ca5f6326 cmCoreTryCompile: parse `SOURCES_TYPE` argument 07551f35de cmCoreTryCompile: use `target_sources` for `try_compile` targets aad9033b56 cmExperimental: support forwarding associated variables to `try_compile` f6cf433256 cmExperimental: only forward C++ module support to non-ABI checks ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8639
| * | | | cmExperimental: recycle the C++ modules API UUIDBen Boeckel2023-07-3110-10/+10
| | | | | | | | | | | | | | | | | | | | `try_compile` and `try_run` now support C++ modules.
| * | | | cmCoreTryCompile: use the source type context for source filesBen Boeckel2023-07-319-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a test to `RunCMake/CXXModules` to test `try_compile` with C++ modules. Fixes: #25097
* | | | | Merge topic 'set-CACHE-diagnostics'Brad King2023-08-074-0/+25
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 20c23518d9 set: Improve diagnostics for CACHE mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8679
| * | | | | set: Improve diagnostics for CACHE modeJeremy2023-08-024-0/+25
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Improve `set()` diagnostics to be more specific than given invalid arguments for CACHE mode
* | | | | Merge branch 'backport-revert-vs-show-cmake-files'Brad King2023-08-027-255/+11
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| |
| * | | VS: Revert "Add CMake input files to ZERO_CHECK"Brad King2023-08-027-255/+11
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit df58dbb0e9 (VS: Add CMake input files to ZERO_CHECK, 2023-03-19, v3.27.0-rc1~157^2), projects that specify the same file both as input to `configure_file` and as the `MAIN_DEPENDENCY` of a custom command fail to configure. Revert the change pending further investigation. Add a test case demonstrating the problem. Issue: #24557 Fixes: #25149
| * | Merge topic 'property-typo-fix' into release-3.27Brad King2023-07-251-1/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | c172eecea6 cmTarget: Restore Fortran_PREPROCESS property initialization Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8654
| * \ \ Merge topic 'cdash_checksum_400' into release-3.27Brad King2023-07-251-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b7c871f745 ctest: Update ctest_submit for CDash behavior change Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8648
* | \ \ \ Merge topic 'xcode-embed-resources'Brad King2023-08-018-2/+49
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e40d2cb3af Xcode: Add embed resources support Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Deal <halx99@live.com> Merge-request: !8632
| * | | | | Xcode: Add embed resources supporthalx992023-07-318-2/+49
| | | | | |
* | | | | | Merge topic 'test_utf8_improve'Brad King2023-08-011-58/+49
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3ce4e9523c testUTF8: Improve using string_view Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8673
| * | | | | testUTF8: Improve using string_viewVitaly Stakhovsky2023-07-301-58/+49
| | | | | |
* | | | | | Merge topic 'test-target-property-init'Brad King2023-07-3120-0/+716
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b66c494ca4 Tests/RunCMake/property_init: test 'with_exports' properties efad4391e5 Tests/RunCMake/property_init: test 'with_commands' properties 5f1bf85f84 Tests/RunCMake/property_init: test 'with_artifact' properties 02972ed9e8 Tests/RunCMake/property_init: test 'shared_library' properties 653a32aa72 Tests/RunCMake/property_init: test 'pic_targets' properties 141049cf16 Tests/RunCMake/property_init: test 'normal' properties bc318ceb7f Tests/RunCMake/property_init: test 'non_imported' properties 0b56e3fedd Tests/RunCMake/property_init: test 'normal_non_imported' properties ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8655
| * | | | | | Tests/RunCMake/property_init: test 'with_exports' propertiesBen Boeckel2023-07-292-0/+52
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'with_commands' propertiesBen Boeckel2023-07-292-0/+14
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'with_artifact' propertiesBen Boeckel2023-07-292-0/+20
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'shared_library' propertiesBen Boeckel2023-07-292-0/+13
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'pic_targets' propertiesBen Boeckel2023-07-292-0/+22
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'normal' propertiesBen Boeckel2023-07-292-0/+11
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'non_imported' propertiesBen Boeckel2023-07-292-0/+12
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'normal_non_imported' propertiesBen Boeckel2023-07-292-0/+10
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'linkable' propertiesBen Boeckel2023-07-292-0/+13
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'library_with_artifact' propertiesBen Boeckel2023-07-292-0/+11
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: add `per_config` table builder helperBen Boeckel2023-07-291-0/+35
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'imported' propertiesBen Boeckel2023-07-292-0/+10
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'executable' propertiesBen Boeckel2023-07-292-0/+26
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'can_compile' propertiesBen Boeckel2023-07-292-0/+275
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: test 'always' propertiesBen Boeckel2023-07-292-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | All targets get these targets initialized.
| * | | | | | Tests/RunCMake/property_init: add a function to test propertiesBen Boeckel2023-07-291-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function consumes a property table and tests against every kind of target: those for which the initialization happens and those that should ignore them. Also add a function that can build the pairs of target type lists required.
| * | | | | | Tests/RunCMake/property_init: add functions to make example targetsBen Boeckel2023-07-294-1/+58
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: add a function to parse property tablesBen Boeckel2023-07-291-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tables will be triples of property / value / alias value. Parsing is a bit tricky, but is easier when `foreach (IN ZIP_LISTS)` with the values in their distinct list.
| * | | | | | Tests/RunCMake/property_init: add a function to check a propertyBen Boeckel2023-07-291-0/+24
| | | | | | |
| * | | | | | Tests/RunCMake/property_init: add skeleton for testingBen Boeckel2023-07-293-0/+8
| |/ / / / /
* | | | | | Merge topic 'ci-debian-12'Brad King2023-07-317-7/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 241ee252ce IWYU: Update for Debian 12 CI job 09db788636 ci: use Debian 12 images and environments 9526679bbc ci: Update base images to Debian 12 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8669
| * | | | | IWYU: Update for Debian 12 CI jobBrad King2023-07-287-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `include-what-you-use` diagnostics, in practice, are specific to the environment's compiler and standard library. Update includes to satisfy IWYU for our CI job under Debian 12.
* | | | | | find_library(): Add support for .xcframeworkKyle Edwards2023-07-282-0/+15
|/ / / / / | | | | | | | | | | | | | | | Issue: #21752
* | | | | Merge topic 'xcframework-target-link-libraries'Kyle Edwards2023-07-2775-0/+275
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7050ac56a1 macOS: Add support for linking against .xcframework folders 93ed53790c bootstrap: Unconditionally build libjsoncpp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8619