summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | Merge topic 'link_deduplication_imported_targets'Brad King2024-09-186-1/+63
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 502610733f Ensure imported targets in sibling dirs are deduplicated Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9821
| * | | | | | Ensure imported targets in sibling dirs are deduplicatedMarc Chevrier2024-09-156-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #26284
* | | | | | | execute_process: Change default ENCODING to UTF-8Brad King2024-09-168-2/+21
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows is heading toward making UTF-8 the preferred MBCS. As CMake's internal encoding, `UTF-8` is effectively equivalent to `NONE`, which was CMake's behavior prior to 3.15's accidental change to `AUTO`. Behavior of `ENCODING UTF-8` is independent of CMake's internal encoding, making it in principle a better default than `NONE`. Add policy CMP0176 for compatibility and to document the default's history. Fixes: #26262
* | | | | | Merge topic 'execute_process-encoding'Brad King2024-09-1612-9/+53
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3898e53e82 execute_process: Document and test ENCODING default d67519fce8 Help/command/execute_process: Improve formatting of ENCODING names e1fc4b9b17 Tests/RunCMake/execute_process: Add test for ENCODING AUTO 56ae758bc5 Tests/RunCMake/execute_process: Improve test for ENCODING UTF-8 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9816
| * | | | | | execute_process: Document and test ENCODING defaultBrad King2024-09-133-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default was originally AUTO in commit 2ed473b3b8 (execute_process: Add ENCODING option for Windows child process output, 2016-11-23, v3.8.0-rc1~232^2) but was changed back to NONE by commit 07c3380a6e (execute_process: Restore no-decoding default behavior, 2017-02-13, v3.8.0-rc2~26^2) for CMake 3.8. Later it was accidentally changed back to AUTO by commit b783e62533 (cmExecuteProcessCommand: Port to cmArgumentParser, 2019-03-25, v3.15.0-rc1~270^2) in CMake 3.15 but the documentation was not updated. Document the current default, AUTO, and add a test case to verify it. Issue: #26262
| * | | | | | Tests/RunCMake/execute_process: Add test for ENCODING AUTOBrad King2024-09-136-5/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows the AUTO encoding is based on the console code page, so run the test in an isolated console window.
| * | | | | | Tests/RunCMake/execute_process: Improve test for ENCODING UTF-8Brad King2024-09-126-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Generalize the test infrastructure. Add Chinese text to the sample.
* | | | | | | Merge topic 'ninja-depfile-quoting'Brad King2024-09-1621-94/+171
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b11323f1e4 Ninja: Fix depfile binding with spaces in path ad66be9943 cmNinjaTargetGenerator: Factor out helper to add depfile bindings 269c3a13c8 cmNinjaTargetGenerator: Reduce DEP_FILE binding duplication 48ced5fb12 Tests/RunCMake/BuildDepends: Enable more depfile cases with Ninja b751a857cc Tests/RunCMake/BuildDepends: Simplify CustomCommandDepends case 006891dab9 Tests/RunCMake/BuildDepends: Prepare CompileDepends check for multiple targets 0915320ddf Tests/RunCMake/BuildDepends: Simplify CompileDepends case 24fbfa915c Tests/RunCMake/BuildDepends: Simplify LinkDepends case Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9812
| * | | | | | Ninja: Fix depfile binding with spaces in pathBrad King2024-09-136-3/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In build statements we use a single `DEP_FILE = ...` binding that is shared between `depfile = $DEP_FILE` and `command = ... $DEP_FILE ...` bindings in the corresponding rule. In cases that the command's shell argument needs quoting, add a separate `depfile = ...` binding to the build statement to express the depfile path without quoting. Otherwise `ninja` tries to open a file path that contains literal quotes. Fixes: #26287
| * | | | | | Tests/RunCMake/BuildDepends: Enable more depfile cases with NinjaBrad King2024-09-123-3/+29
| | | | | | |
| * | | | | | Tests/RunCMake/BuildDepends: Simplify CustomCommandDepends caseBrad King2024-09-128-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also rename from "CustomCommandDependencies".
| * | | | | | Tests/RunCMake/BuildDepends: Prepare CompileDepends check for multiple targetsBrad King2024-09-121-21/+23
| | | | | | |
| * | | | | | Tests/RunCMake/BuildDepends: Simplify CompileDepends caseBrad King2024-09-127-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also rename from "CompilerDependencies".
| * | | | | | Tests/RunCMake/BuildDepends: Simplify LinkDepends caseBrad King2024-09-124-28/+13
| |/ / / / /
* | | | | | Merge topic 'file-REAL_PATH-warn-non-existing'Brad King2024-09-134-0/+15
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 00c1161b01 file(REAL_PATH): Warn on non-existing paths Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9806
| * | | | | file(REAL_PATH): Warn on non-existing pathsAlex Overchenko2024-09-124-0/+15
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | The command is documented to work only for cases that the referenced path exists. Fixes: #26260
* | | | | Merge topic 'proto'Brad King2024-09-123-3/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1dc1d000a0 FindProtobuf: Fix IMPORT_DIRS handling and relative directory generation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9809
| * | | | | FindProtobuf: Fix IMPORT_DIRS handling and relative directory generationXiong Nandi2024-09-113-3/+24
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Append ${CMAKE_CURRENT_SOURCE_DIR} to `_protobuf_include_path` last, since protoc will search the path in order. Besides, we have to figure out the output directory by iterating through the include paths and checking for valid relative paths.
* | | | | Merge topic 'vs-output-name-net-sdk'Brad King2024-09-123-0/+32
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 66bd326e28 VS: Use OUTPUT_NAME in DOTNET_SDK projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9808
| * | | | | VS: Use OUTPUT_NAME in DOTNET_SDK projectsCalum Robinson2024-09-113-0/+32
| |/ / / / | | | | | | | | | | | | | | | Fixes: #26285
* | | | | Merge topic 'file-archive-workdir'Brad King2024-09-123-3/+18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d8a9aabd24 file(ARCHIVE_CREATE): add WORKING_DIRECTORY option d65b5a8e03 Help: Format file(ARCHIVE*) options as definition lists Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9803
| * | | | | file(ARCHIVE_CREATE): add WORKING_DIRECTORY optionYuri Witte2024-09-113-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25260 Issue: #21653
* | | | | | Merge topic 'cpack-ifw-product-images'Brad King2024-09-128-0/+177
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5b8fa21512 Tests: Add a test covering the CPack IFW Generator 3331c7032f CPack/IFW: Add option for ProductImages URLs d58f90f628 CPack/IFW: Actually ignore missing ProductImages 3c214f2638 CPack/IFW: Fix generation of ProductImages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9798
| * | | | | Tests: Add a test covering the CPack IFW GeneratorJulien Marrec2024-09-118-0/+177
| | |/ / / | |/| | |
* | | | | Merge topic 'genex-tco-subgraph'Brad King2024-09-112-0/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4a11772618 GenEx: Limit TARGET_PROPERTY transitive closure optimization to subgraphs Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !9789
| * | | | | GenEx: Limit TARGET_PROPERTY transitive closure optimization to subgraphsMichael Herwig2024-09-102-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25728
* | | | | | Merge topic 'add_custom_command-arg-handling'Brad King2024-09-1112-4/+182
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec519f3e97 add_custom_command: Validate arguments more rigorously 8dc8be0884 AndroidTestUtilities: Remove DEPENDS that was being silently ignored 316840b430 Tests: Add missing POST_BUILD to custom commands f5f80305ef ExternalProject: Ensure keywords requiring an argument have one Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9785
| * | | | | add_custom_command: Validate arguments more rigorouslyCraig Scott2024-09-098-0/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new CMP0175 policy to preserve backward compatibility for projects that were using unsupported keywords or arguments. Fixes: #26096, #21089, #18976
| * | | | | Tests: Add missing POST_BUILD to custom commandsCraig Scott2024-09-094-4/+7
| |/ / / / | | | | | | | | | | Issue: #21089
* | | | | Merge topic 'pass-link-directories'Brad King2024-09-106-1/+166
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9e95bd49f2 Check*: Add option to pass link directories into checks Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9795
| * | | | Check*: Add option to pass link directories into checksAliaksandr Averchanka2024-09-096-1/+166
| | | | |
* | | | | Tests/RunCMake/IAR: Fix ASM cases for XLINK targetsFelipe Torrezan2024-09-062-41/+50
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The IAR Assemblers seem to be missing some built-in target-identifier symbols. Instead, identify the affected target architectures by using their respective `__TID__` (Target Identifier) built-in symbols. Also make sure the test has an IAR Assembly implementation for each target. Fixes: #26267
* | | | Tests/RunCMake/IAR: Exclude ASM cases on Windows pending investigationBrad King2024-09-051-4/+7
| | | | | | | | | | | | | | | | Issue: #26267
* | | | Tests/RunCMake/IAR: Quote linker flags for spaces in path to toolkitBrad King2024-09-051-4/+4
| | | |
* | | | Merge topic 'windows-kernel-mode-driver-includes'Brad King2024-09-051-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b151bcfc9e WindowsKernelModeDriver: Add WDK include and link paths on MSVC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9705
| * | | | WindowsKernelModeDriver: Add WDK include and link paths on MSVCJoseph Snyder2024-09-031-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detect Windows Kernel-Mode Driver include directories and library search paths from the WDK command-line environment. Require toolchain files to specify the KMDF target version via a new variable. Since this changes the behavior of the WindowsKernelModeDriver experimental feature, update its UUID.
* | | | Merge topic 'build-databases'Brad King2024-09-0558-54/+3481
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e77655555c cmExperimental: gate build database support behind a flag 23cbeb5035 ci: enable `build_database` CXXModules tests 6863c1d823 Tests/CXXModules: add tests for module commands 123107c1a4 Tests/CXXModules: add support for running targets under a given config 438038b5e1 Tests/CXXModules: support building specific targets of example trees 84bc710d84 cmGlobalGenerator: generate build database files for targets 670f753f24 cmDyndepCollation: write build database metadata dcf9a66ffe cxxmodules: plumb control data for exporting build databases ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9708
| * | | | cmExperimental: gate build database support behind a flagBen Boeckel2024-09-035-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | Given that the feature currently only supports C++ sources and is not formally accepted by ISO yet, gate it behind a flag.
| * | | | Tests/CXXModules: add tests for module commandsBen Boeckel2024-09-0346-1/+3378
| | | | |
| * | | | Tests/CXXModules: add support for running targets under a given configBen Boeckel2024-08-271-1/+8
| | | | |
| * | | | Tests/CXXModules: support building specific targets of example treesBen Boeckel2024-08-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This will be used to ensure that module command targets work as intended.
| * | | | cmDyndepCollation: write build database metadataBen Boeckel2024-08-278-0/+8
| | | | | | | | | | | | | | | | | | | | Generators will hook this up into the build graph as needed.
| * | | | cxxmodules: plumb control data for exporting build databasesBen Boeckel2024-08-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes the target property, its initializing variable, its initializing environment variable, and updating related docs to mention the new bits.
| * | | | cmDyndepCollation: write out scanned source information tooBen Boeckel2024-08-278-8/+50
| | | | | | | | | | | | | | | | | | | | | | | | | This is required to fill in the `requires` field for sources using modules that do not provide them.
| * | | | Tests/CXXModules: factor out running an import testBen Boeckel2024-08-271-48/+21
| | | | |
* | | | | Merge topic 'msvc-v100-manifest-tooling'Brad King2024-09-041-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09a47c7972 MSVC: Restore support for non-incremental linking with v100 toolset and older Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9783
| * | | | | MSVC: Restore support for non-incremental linking with v100 toolset and olderRĂ¼diger Ihle2024-09-031-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 0b552eb877 (MSVC: Embed manifests directly for non-incremental vs_link_exe links, 2023-02-20, v3.27.0-rc1~438^2) we use `/MANIFEST:EMBED`, but that is not supported by older MSVC linkers. Restore use of the standalone manifest tool. Update `Tests/MSManifest` to recognize `dpiAwareness` in the manifest content as written by MSVC v100 tooling. Fixes: #26179
* | | | | Tests/RunCMake/IAR: Add missing linker options for RH850Felipe Torrezan2024-09-031-0/+7
| |/ / / |/| | | | | | | | | | | Closes: #26249
* | | | Merge topic 'standard-link-directories'Brad King2024-08-2910-0/+43
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 20e9b59d5e Linking: Add CMAKE_LANG_STANDARD_LINK_DIRECTORIES Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9707
| * | | | Linking: Add CMAKE_LANG_STANDARD_LINK_DIRECTORIESVito Gamberini2024-08-2810-0/+43
| | | | | | | | | | | | | | | | | | | | Closes: #18222