summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'try_compile-cleanup'Brad King2022-08-0335-19/+130
|\ | | | | | | | | | | | | | | | | | | | | | | 6b427d8da9 cmCoreTryCompile: Port to cmArgumentParser 067ba3a2bd cmCoreTryCompile: Move target type selection logic to try_compile 781e1b191a cmCoreTryCompile: Simplify TryCompileCode return type 3218ea60de Tests: Add RunCMake.try_compile case for try_run-only args b8e551ed32 Tests: Add RunCMake.try_run cases for missing keyword arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7531
| * cmCoreTryCompile: Port to cmArgumentParserBrad King2022-08-0217-91/+74
| |
| * Tests: Add RunCMake.try_compile case for try_run-only argsBrad King2022-08-023-0/+83
| |
| * Tests: Add RunCMake.try_run cases for missing keyword argumentsBrad King2022-08-0123-13/+58
| |
* | Merge topic 'cpp-named-module-support-msvc'Brad King2022-08-0312-3/+119
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4f95e6b284 ci: test BMI exporting and installation with GCC in CI c49d5f137b RunCMake/CXXModules: add a "deep-chain" test 297e0f4dce cmCxxModuleMapper: support MSVC module map format b3c2880cb2 cmCxxModuleMapper: track transitive modules for MSVC a43713d615 CTestCustom: ignore `cm::optional` uninitialized memory false positive b90de0b492 RunCMake/CXXModules: support MSVC extensions a84c186a7d cmScanDepFormat: support the MSVC 17.3 toolchain temporarily d7f5064ff7 cmScanDepFormat: support P1689R5 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7481
| * | RunCMake/CXXModules: add a "deep-chain" testBen Boeckel2022-08-029-0/+116
| | | | | | | | | | | | | | | This tests that transitive usages are propogated properly across long import chains between targets.
| * | RunCMake/CXXModules: support MSVC extensionsBen Boeckel2022-08-021-1/+1
| | |
| * | RunCMake/CXXModules: fix partition importing syntaxBen Boeckel2022-07-262-2/+2
| | | | | | | | | | | | Apparently GCC accepts the ill-formed prior syntax.
* | | Merge topic 'cuda_add_lto_support'Brad King2022-08-0312-13/+255
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 96bc59b1ca CUDA: Add Device LTO support for nvcc 1527d48cd0 CheckIPO: Refactor logic selecting test source files 4a552ab4ad remove unused variables 6eda92d037 remove unused variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7389
| * | | CUDA: Add Device LTO support for nvccRobert Maynard2022-07-2212-13/+255
| | | | | | | | | | | | | | | | Fixes #22200
* | | | Merge topic 'find_package-refactor-path-generation'Brad King2022-08-0350-0/+238
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2f69c0233c cmFindPackageCommand: Optimize the last calls to `TryGeneratedPaths` 076a4b44b0 cmFindPackageCommand: Path generators are actually reusable 664abd486f cmFindPackageCommand: Better names for template parameters c862797a40 cmFindPackageCommand: Rename some generators fdd14b1744 cmFindPackageCommand: Deduplicate directory listing code 08e7fb3cfa cmFindPackageCommand: Compile-time path generator expressions 61eb5d4de5 cmFindPackageCommand: Avoid friendship between command class and generator ef62f213f8 cmFindPackageCommand: Drop dead code ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7445
| * | | Tests: Add more find_package search path casesAlex Turbov2022-07-1150-0/+238
| |/ /
* | | cmCMakePathCommand: Enforce non-empty string arguments via binding typeBrad King2022-07-282-0/+7
| | |
* | | cmArgumentParser: Model non-empty strings with wrapper typeBrad King2022-07-281-0/+16
| | | | | | | | | | | | | | | | | | Some clients have been explicitly checking whether the string specified after a keyword is empty. Offer them a way to specify that the string must be non-empty as part of the binding type.
* | | Merge topic 'command-arg-parser'Brad King2022-07-281-3/+131
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 236bacc244 cmArgumentParser: Offer bindings for positional arguments 1f2eb63d1c cmArgumentParser: Add callback bindings f5d2f6076a cmArgumentParser: Generalize expected argument count 078e2aec8f cmArgumentParser: Generalize internal state tracking 77fcb00a2b cmArgumentParser: Propagate constructors through binding wrapper types Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7514
| * | | cmArgumentParser: Offer bindings for positional argumentsBrad King2022-07-271-0/+7
| | | |
| * | | cmArgumentParser: Add callback bindingsBrad King2022-07-271-3/+110
| | | |
| * | | cmArgumentParser: Propagate constructors through binding wrapper typesBrad King2022-07-271-0/+14
| | |/ | |/|
* | | Merge topic 'verify-interface-header-sets-interface-library-source-language'Brad King2022-07-282-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 41f15193e5 VERIFY_INTERFACE_HEADER_SETS: Fall back to global languages Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7517
| * | | VERIFY_INTERFACE_HEADER_SETS: Fall back to global languagesKyle Edwards2022-07-272-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a target doesn't have any source files, fall back to the global list of enabled languages to determine the language of the header file to verify. Fixes: #23774
* | | | Merge topic 'verify-interface-header-sets-add-compile-definitions'Brad King2022-07-282-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 27fd172d8d VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targets 626e641a19 cmTarget: Factor out FinalizeTargetCompileInfo() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7516
| * | | | VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targetsKyle Edwards2022-07-272-0/+6
| |/ / / | | | | | | | | | | | | Fixes: #23732
* | | | Tests: Add RunCMake.try_compile case covering empty value argumentsBrad King2022-07-264-0/+15
| | | |
* | | | Tests: Add RunCMake.try_compile case covering list arguments with no valuesBrad King2022-07-262-0/+9
| | | |
* | | | try_compile: Fail earlier when bindir is not an absolute pathBrad King2022-07-2614-0/+32
| |/ / |/| | | | | | | | | | | If the bindir is not an absolute path, other errors occur later. Fail early with a clear error in this case.
* | | cmArgumentParser: Offer binding for list of parsed keywordsBrad King2022-07-251-0/+23
| | | | | | | | | | | | | | | Some clients ask for this list in their `Parse()` call. Offer them a way to express this request as a binding.
* | | cmArgumentParser: Drop unused keywordsMissingValue argument to Parse()Brad King2022-07-251-17/+7
| | | | | | | | | | | | | | | All clients have been converted to encoding this requirement in their bindings.
* | | Merge topic 'cmake-help-flags-after-dashdash'Brad King2022-07-253-3/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | 14a0e750cb cmake: In -P mode ignore flags like `--version` after `--` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7496
| * | cmake: In -P mode ignore flags like `--version` after `--`Robert Maynard2022-07-223-3/+5
| | | | | | | | | | | | Fixes: #21031
* | | Merge topic 'cmake-P-path-args'Brad King2022-07-253-0/+13
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | febe3190f0 Merge branch 'backport-3.23-cmake-P-path-args' 846a650ff7 cmake: In -P mode ignore extra paths on the command line c362cba566 cmake: simplify to a single source of truth of working mode 261fa5db39 cmake: In -P mode ignore extra paths on the command line 314135cdf1 cmake: simplify to a single source of truth of working mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7494
| * | cmake: In -P mode ignore extra paths on the command lineRobert Maynard2022-07-223-0/+13
| | | | | | | | | | | | Fixes: #23748
* | | 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