summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'command-arg-parser-result'Brad King2022-07-2557-148/+228
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8a18e82e95 cmCMakePathCommand: Report keyword errors via argument parser results 7e4a9afa1a cmCMakeHost*Command: Report keyword errors via argument parser results 74ec6b63c2 cmFileCommand: Report keyword errors via argument parser results e56108f629 cmExecuteProcessCommand: Report keyword errors via argument parser results b7c82b26b0 cmArgumentParser: Capture keyword errors in parse results 50876f6b9a cmArgumentParser: Add structure to capture operational results 5955ec1992 cmArgumentParser: Store keyword action map with explicit name 119e1f7fbc cmArgumentParser: Factor out common static/dynamic implementation ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7488
| * cmCMakePathCommand: Report keyword errors via argument parser resultsBrad King2022-07-222-2/+6
| |
| * cmCMakeHost*Command: Report keyword errors via argument parser resultsBrad King2022-07-222-4/+8
| |
| * cmFileCommand: Report keyword errors via argument parser resultsBrad King2022-07-2211-26/+65
| |
| * cmExecuteProcessCommand: Report keyword errors via argument parser resultsBrad King2022-07-222-2/+7
| |
| * cmArgumentParser: Capture keyword errors in parse resultsBrad King2022-07-221-2/+16
| | | | | | | | | | | | | | | | | | Since commit f46b2e9142 (cmArgumentParser: Model maybe-missing string with wrapper type, 2022-07-06) we know during parsing whether or not it is an error for a keyword to be missing a value. Record such errors in the parse results structure. Offer clients a helper method to report them. This provides clients with an alternative to manually checking `keywordsMissingValue` and generating their own error message.
| * cmArgumentParser: Add structure to capture operational resultsBrad King2022-07-221-39/+57
| | | | | | | | | | | | | | Create a way for the parser to record errors or incidental information about the argument parsing operation that clients can inspect afterward. Offer clients a way to hold the structure as part of their arguments structure.
| * Tests: Add RunCMake.cmake_path cases for BASE_DIRECTORY missing valueBrad King2022-07-202-0/+10
| |
| * Tests: Add RunCMake.file-CHMOD cases for keywords missing valuesBrad King2022-07-2013-7/+21
| | | | | | | | | | These make the existing `no-perms` case redundant, so repurpose it to replace `no-keyword`.
| * Tests: Simplify RunCMake.file-CHMOD casesBrad King2022-07-2015-72/+44
| | | | | | | | | | Run each case as a `cmake -P` script instead of a full project. The caller handles build directory removal and creation.
| * Tests: Simplify RunCMake.file-CHMOD case namesBrad King2022-07-2021-14/+14
| | | | | | | | The `CHMOD-` prefix is redundant with the overall test name.
* | Merge topic 'FindVulkan-dxc'Brad King2022-07-223-0/+58
|\ \ | | | | | | | | | | | | | | | | | | 1277b873c9 FindVulkan: Add `dxc` (DirectX Shader Compiler) component Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7474
| * | FindVulkan: Add `dxc` (DirectX Shader Compiler) componentHellsingDarge2022-07-203-0/+58
| | |
* | | Merge topic 'try_run_split_output'Brad King2022-07-229-1/+55
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2cd0687db try_run: Add RUN_OUTPUT_STDOUT_VARIABLE and RUN_OUTPUT_STDERR_VARIABLE. Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7453
| * | | try_run: Add RUN_OUTPUT_STDOUT_VARIABLE and RUN_OUTPUT_STDERR_VARIABLE.Patrick Northon2022-07-089-1/+55
| | | |
* | | | Merge topic 'tutorial_cdash_rearrange'Brad King2022-07-221-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6c77ccec51 Tutorial: Move step 8 to step 5. Shift steps 5-7 to 6-8. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7480
| * | | | Tutorial: Move step 8 to step 5. Shift steps 5-7 to 6-8.Markus Ferrell2022-07-191-1/+1
| | |/ / | |/| |
* | | | Merge topic 'vs-ZERO_CHECK-proj'Brad King2022-07-204-0/+43
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 7219988b00 VS: Exclude ZERO_CHECK.proj from .sln for include_external_msproject Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7478
| * | | VS: Exclude ZERO_CHECK.proj from .sln for include_external_msprojectSumit Bhardwaj2022-07-204-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In `cmGlobalVisualStudio7Generator::WriteTargetsToSolution`, we skip writing `ZERO_CHECK.proj` to solution file as the check in `cmGlobalVisualStudioGenerator::IsInSolution` returns `false` for `ZERO_CHECK`. However, we write ZERO_CHECK to ProjectDependencies for external projects as there are no checks in `cmGlobalVisualStudio71Generator::WriteExternalProject`. Similar to `cmGlobalVisualStudioGenerator::IsInSolution`, we introduce `IsDepInSolution(const std::string&)` which excludes `ZERO_CHECK.proj` from being added to sln file for the cases where we have `ZERO_CHECK.proj`. Fixes: #23708
| * | | Merge topic 'export-try-compile-crash' into release-3.24Kyle Edwards2022-07-142-0/+10
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 29c7546a61 cmGlobalGenerator: Only compute build files for all targets Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7472
| * \ \ \ Merge topic 'genex-LINK_LIBRARY-check-supported-properties' into release-3.24Brad King2022-07-0720-12/+68
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 913ea78d7a Genex LINK_LIBRARY and LINK_GROUP: check supported properties Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7454
| * \ \ \ \ Merge topic 'genex-LINK_LIBRARY-fix-generation' into release-3.24Brad King2022-07-064-0/+12
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e8792da04b genex-LINK_LIBRARY: ensure correct generation inside LINK_GROUP genex Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7443
* | | | | | | Ninja Multi-Config: Deduplicate compile_commands.json for cross configsKyle Edwards2022-07-153-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compile_commands.json was being written for every permutation of cross configurations. Deduplicate so only one command is output for each configuration. Fixes: #23733
* | | | | | | Merge topic 'export-try-compile-crash'Kyle Edwards2022-07-142-0/+10
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 29c7546a61 cmGlobalGenerator: Only compute build files for all targets Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7472
| * | | | | | cmGlobalGenerator: Only compute build files for all targetsKyle Edwards2022-07-132-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're creating generation objects for imported targets only, we don't need the export sets. Only compute build file generators if generating for all targets. Fixes: #23709
| * | | | | | Merge branch 'file-set-crash' into release-3.23Brad King2022-06-307-0/+28
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !7420
| * \ \ \ \ \ \ Merge branch 'xcode-14' into release-3.23Brad King2022-06-111-0/+2
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !7350
* | \ \ \ \ \ \ \ Merge topic 'vs-msb-8028'Kyle Edwards2022-07-141-0/+9
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d99d33d749 VS: Generate IntDir property for INTERFACE libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7462
| * | | | | | | | VS: Generate IntDir property for INTERFACE librariesJonas Fierlings2022-07-081-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents MSBuild from complaining with warning MSB8028. Fixes #23043
* | | | | | | | | Merge topic 'command-arg-parser-maybe-empty'Brad King2022-07-081-5/+17
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f46b2e9142 cmArgumentParser: Model maybe-missing string with wrapper type e6d1e29ffa cmArgumentParser: Model maybe-empty and non-empty lists with wrapper types Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7459
| * | | | | | | | | cmArgumentParser: Model maybe-missing string with wrapper typeBrad King2022-07-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bindings to `std::string` require one value. Some clients have been filtering `keywordsMissingValue` to support keywords that tolerate a missing value. Offer them a type-safe way to achieve this instead.
| * | | | | | | | | cmArgumentParser: Model maybe-empty and non-empty lists with wrapper typesBrad King2022-07-071-5/+12
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously bindings to `std::vector<std::string>` required at least one value. Some clients have been filtering `keywordsMissingValue` to support keywords followed by empty lists. Instead, require clients to specify whether a keyword's list can be empty as part of the binding type.
* | | | | | | | | Merge topic 'xcode_swift_definitions'Brad King2022-07-082-0/+7
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5cb625eb2f Xcode: Pass compile definitions to Swift Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7388
| * | | | | | | | Xcode: Pass compile definitions to SwiftDavid Geldreich2022-07-072-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correct Xcode generator Swift definitions original code was defining GCC_PREPROCESSOR_DEFINITIONS which is valid only for C languages add definitions to SWIFT_ACTIVE_COMPILATION_CONDITIONS when Swift language is used in the target add test in SwiftOnly for old Xcode (<8.0), append defines to cflags so it ends up in OTHER_SWIFT_FLAGS Fixes: #23637
* | | | | | | | | Merge topic 'cpp-named-module-export-infra'Brad King2022-07-0782-7/+1835
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f62c3c3c72 RunCMake/CXXModules: test public modules requiring private modules c5d4dd713f RunCMake/CXXModules: add tests which export BMIs 4d55f1422e RunCMake/CXXModules: test installation of BMIs and interfaces eff45f790d RunCMake/CXXModules: fix example follow-on case names a87c39dad1 RunCMake/CXXModules: output example test output upon failure 727e3db07a RunCMake/CXXModules: append to the test options f899563ae4 cmGlobalNinjaGenerator: verify that private sources stay private 9ecd3e771b cmGlobalNinjaGenerator: generate install rules for BMI files ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !7224
| * | | | | | | | | RunCMake/CXXModules: test public modules requiring private modulesBen Boeckel2022-07-067-0/+48
| | | | | | | | | |
| * | | | | | | | | RunCMake/CXXModules: add tests which export BMIsBen Boeckel2022-07-0625-0/+479
| | | | | | | | | |
| * | | | | | | | | RunCMake/CXXModules: test installation of BMIs and interfacesBen Boeckel2022-07-0611-0/+161
| | | | | | | | | |
| * | | | | | | | | RunCMake/CXXModules: fix example follow-on case namesBen Boeckel2022-07-061-2/+2
| | | | | | | | | |
| * | | | | | | | | RunCMake/CXXModules: output example test output upon failureBen Boeckel2022-07-061-1/+1
| | | | | | | | | |
| * | | | | | | | | RunCMake/CXXModules: append to the test optionsBen Boeckel2022-07-061-1/+1
| | | | | | | | | |
| * | | | | | | | | cmNinjaTargetGenerator: write out BMI install information for the collatorBen Boeckel2022-07-0610-0/+216
| | | | | | | | | |
| * | | | | | | | | cmNinjaTargetGenerator: write out export information for the collatorBen Boeckel2022-07-068-0/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The collator will use this to know where the target's export information needs to go so that module properties may be provided.
| * | | | | | | | | cmNinjaTargetGenerator: write out fileset information for the collatorBen Boeckel2022-07-066-0/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The collator will use this to generate property settings for the imported targets in the build and install export sets.
| * | | | | | | | | Tests/RunCMake/CXXModules: add a json comparison scriptBen Boeckel2022-07-061-0/+160
| | | | | | | | | |
| * | | | | | | | | cmExperimental: update `CXX_MODULE_CMAKE_API` UUIDBen Boeckel2022-07-064-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The set of features available has been expanded, so update the UUID.
| * | | | | | | | | cmExport*FileGenerator: support exporting C++ module propertiesBen Boeckel2022-07-067-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++ module properties will be generated at build time, so generate code that includes the files actually responsible for the information.
| * | | | | | | | | install: support `CXX_MODULES_BMI` installation bitsBen Boeckel2022-07-0612-0/+126
| | | | | | | | | |
| * | | | | | | | | cmTargetSourcesCommand: allow `INTERFACE` C++ modules when importedBen Boeckel2022-07-065-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `PUBLIC` filesets become `INTERFACE` upon installation. Allow `INTERFACE` scopes for C++ modules when the target is imported.
* | | | | | | | | | Merge topic 'file-TIMESTAMP-relative-path'Brad King2022-07-073-0/+4
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 733801b57f file(TIMESTAMP): Interpret relative paths w.r.t. the source tree Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7440