summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* FindPkgConfig: split args if loaded from environmentChristopher Degawa2021-06-184-0/+54
| | | | | | | | | | | | | | | It's common for some people to use the PKG_CONFIG environment variable to not only load a custom pkg-config/pkgconf but also to load some default arguments such as `--static` or `--keep-system-libs` which often worked since shell scripts would call `$PKG_CONFIG --libs pkg` without quotes, but this breaks FindPkgConfig since it uses the full string as `argv[0]` and might try looking for a binary called `pkgconf --static`, instead of looking for `pkgconf` and adding `--static` as the `argv[1]` Additionally adds RunCMake.FindPkgConfig ARGN test case Fixes: #22305 Signed-off-by: Christopher Degawa <ccom@randomderp.com>
* Merge topic 'fix-flow-control-override'Brad King2021-06-173-0/+5
|\ | | | | | | | | | | | | c017098d4d CMake: Allow override of unexpected non-flow-control commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6232
| * CMake: Allow override of unexpected non-flow-control commandsKyle Edwards2021-06-163-0/+5
| | | | | | | | Fixes: #22310
| * Merge topic 'presets-build-fixes' into release-3.20Brad King2021-06-093-5/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 534c40e6d8 presets: Fix buildPreset "targets" not allowing a single string 5d67632813 presets: Fix buildPreset "jobs" 93e396b402 presets: Fix buildPreset "jobs" field test case Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !6190
* | | CMakeDependentOption: Allow parentheses in the depends stringDaniel Schürmann2021-06-144-0/+12
| | | | | | | | | | | | | | | | | | | | | `if()` takes the condition as a list of arguments. Parentheses need to be separated as well. Fixes: #22303
* | | Merge topic 'xcode13-linker-output'Brad King2021-06-141-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | a7bbbbf73b Tests: ignore Xcode DVTPlugInManager output 8dcdd4351f Tests: recognize Xcode 13 linker warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6216
| * | | Tests: ignore Xcode DVTPlugInManager outputGregor Jasny2021-06-101-0/+1
| | | |
* | | | Merge topic 'dir-IMPORTED_TARGETS'Brad King2021-06-113-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e13704ce72 Add directory property to list imported targets ea6d338ea1 cmState: Record imported target names in each directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6215
| * | | | Add directory property to list imported targetsBrad King2021-06-103-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Model the change after commit cbca65826c (Add directory property to list buildsystem targets, 2016-09-19, v3.7.0-rc1~79^2~1). Fixes: #22291
* | | | | Tests: Fix RunCMake.CPack_RPM.DEBUGINFO test caseBrad King2021-06-101-0/+17
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Since commit c826745f5a (CPack/DEB: Do not crash when asked for debug symbols when there are none, 2020-10-29, v3.20.0-rc1~461^2) the test fails because CPackRPM warns about no sources in which to find debug symbols. Add expected output for this case.
* | | | Merge topic 'vs-custom-depfile'Brad King2021-06-101-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 526e2ef71c VS: Add support for add_custom_command DEPFILE 794ad78abb Help: Generalize release note filename for add_custom_command DEPFILE 7291f31254 cmTransformDepfile: Add support for MSBuild AdditionalInputs format a6de8ec51b cmTransformDepfile: Make directory for transformed depfile automatically Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6206
| * | | | VS: Add support for add_custom_command DEPFILEBrad King2021-06-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Transform the depfile into MSBuild `AdditionalInputs` content. Add MSBuild Targets to update `AdditionalInputs` and the `.tlog` files for future builds without actually modifying the `.vcxproj` file. Fixes: #20286
* | | | | Merge topic 'ctest_custom_details'Brad King2021-06-102-0/+28
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02f1271bdf ctest: allow test output to override the 'details' field Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6204
| * | | | | ctest: allow test output to override the 'details' fieldZack Galbreath2021-06-092-0/+28
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Parse test output for <CTestDetails>...</CTestDetails>. If found, use this value to override the default 'Details' string reported to CDash.
* | | | | Tests: Improve RunCMake.CPack*.SOURCE_PACKAGE test error formattingBrad King2021-06-092-11/+28
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format message content for `message(FATAL_ERROR)`. Apply the change from commit c54c284de7 (Tests: Improve RunCMake.CPack* test error formatting, 2021-04-22) to the `SOURCE_PACKAGE` script too. Also fix a typo from commit f5d79dec53 (Tests: Cleanup CPack message when files are expected and none are found, 2021-01-15, v3.20.0-rc1~89^2~22).
* | | | Merge topic 'ctest_measurement_file'Brad King2021-06-092-0/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cbcb92d1cb ctest: add support for attaching files to tests at run time Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6192
| * | | | ctest: add support for attaching files to tests at run timeZack Galbreath2021-06-082-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow tests to specify files to upload at runtime. Previously this was only possible to specify at configure time with the ATTACHED_FILES test properties. This commit also fixes a bug in how our test data tarballs were generated by CTest. Previously, if you tried to attach a file outside of the binary directory, CTest would generate a tar file with a relative path, and tar would not allow you to extract it. We resolve this problem by creating tar files with a flat directory structure instead. Fixes: #22284
* | | | | Merge topic 'presets-build-fixes'Brad King2021-06-093-5/+28
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | de2b14a711 Merge branch 'backport-3.20-presets-build-fixes' into presets-build-fixes 534c40e6d8 presets: Fix buildPreset "targets" not allowing a single string 5d67632813 presets: Fix buildPreset "jobs" 93e396b402 presets: Fix buildPreset "jobs" field test case efe7ac9022 presets: Fix buildPreset "targets" not allowing a single string Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !6190
| * \ \ \ \ Merge branch 'backport-3.20-presets-build-fixes' into presets-build-fixesSam Freed2021-06-083-4/+22
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| | * | | | presets: Fix buildPreset "targets" not allowing a single stringSam Freed2021-06-082-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #22272
| | * | | | presets: Fix buildPreset "jobs" field test caseBrad King2021-06-083-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid passing parallel build options to Make tools that do not support them.
| * | | | | presets: Fix buildPreset "targets" not allowing a single stringSam Freed2021-06-072-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #22272
* | | | | | Merge topic 'add_hip_language'Brad King2021-06-0919-5/+122
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8514ee9b31 HIP: analyze output of `hipcc` to determine default GPU architecture 20d086f1a2 HIP: All HIP tests now run on CMake's current AMD hardware 2e86e50c2f HIP: Add HIP to all the Check* modules 947dbed0aa HIP: Automatically inject the `hip::device` runtime target b50bfc8913 HIP: Add language to CMake ff0d2858e1 HIP: Extract clang compiler details from hipcc bd844387df ROCMClang: Add the ROCm toolkit derived clang compiler to CMake 590553f322 Compilers: protect use of __has_include ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Acked-by: Axel Huebl <axel.huebl@plasma.ninja> Merge-request: !6121
| * | | | | HIP: Add HIP to all the Check* modulesRobert Maynard2021-06-079-4/+94
| | | | | |
| * | | | | HIP: Add language to CMakeRobert Maynard2021-06-0711-1/+28
| | | | | |
* | | | | | Tests: Remove unused RunCMake.TransformDepfile filesBrad King2021-06-086-29/+0
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | Remove files missed by commit f0e9d74a2d (cmake_transform_depfile: Remove unused incomplete vstlog support, 2021-06-02).
* | | | | Merge topic 'install-with-runtime-dependencies'Brad King2021-06-0837-3/+444
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d898cb3e1 FileAPI: Add integration for runtime dependency installers 72f2448e82 Help: Add documentation for runtime dependency installation 0c3c6acaff Tests: Add tests for new options 4910132d8c install: Add RUNTIME_DEPENDENCY_SET mode bc8a4a06a4 install(IMPORTED_RUNTIME_ARTIFACTS): Add RUNTIME_DEPENDENCY_SET option 3e7d3c252a install(TARGETS): Add RUNTIME_DEPENDENCY_SET argument ed3633d88c install(TARGETS): Add RUNTIME_DEPENDENCIES option f2617cf8e6 Source: Add cmInstallRuntimeDependencySet ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6186
| * | | | | FileAPI: Add integration for runtime dependency installersKyle Edwards2021-06-044-2/+209
| | | | | |
| * | | | | Tests: Add tests for new optionsKyle Edwards2021-06-042-0/+40
| | | | | |
| * | | | | install: Add RUNTIME_DEPENDENCY_SET modeKyle Edwards2021-06-044-0/+8
| | | | | |
| * | | | | install(IMPORTED_RUNTIME_ARTIFACTS): Add RUNTIME_DEPENDENCY_SET optionKyle Edwards2021-06-044-0/+10
| | | | | |
| * | | | | install(TARGETS): Add RUNTIME_DEPENDENCY_SET argumentKyle Edwards2021-06-047-0/+25
| | | | | |
| * | | | | install(TARGETS): Add RUNTIME_DEPENDENCIES optionKyle Edwards2021-06-0417-1/+79
| | | | | |
| * | | | | file: Add undocumented RPATH_SET commandKyle Edwards2021-06-041-0/+37
| | | | | |
| * | | | | file(GET_RUNTIME_DEPENDENCIES): Add undocumented RPATH_PREFIX optionKyle Edwards2021-06-042-0/+36
| | |/ / / | |/| | |
* | | | | Merge topic 'compile-options-order'Brad King2021-06-085-1/+46
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f68bcad8f Tests: Add cases verifying flag ordering rules ccc83ce162 Help: Document order of flags from CMAKE_<LANG>_FLAGS and COMPILE_OPTIONS df79fe055b Help: Remove incorrect "versionadded" for CMAKE_<LANG>_FLAGS_<CONFIG> c48d2d8480 VS: Place per-source preprocessor definitions after target-wide ones Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6187
| * | | | | Tests: Add cases verifying flag ordering rulesBrad King2021-06-075-1/+46
| |/ / / /
* | | | | FindPkgConfig: Always create the imported targetAdam Badura2021-06-041-0/+4
| | | | | | | | | | | | | | | | | | | | Fixes: #22180
* | | | | Tests: Add case covering FindPkgConfig creation of empty targetsBrad King2021-06-043-0/+19
| |/ / / |/| | |
* | | | Merge topic 'env-toolchain-file'Brad King2021-06-0412-0/+55
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6c34ed9b87 cmake: Allow CMAKE_TOOLCHAIN_FILE to be set by environment variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6188
| * | | | cmake: Allow CMAKE_TOOLCHAIN_FILE to be set by environment variableBrad King2021-06-0312-0/+55
| |/ / / | | | | | | | | | | | | | | | | When no `CMAKE_TOOLCHAIN_FILE` is explicitly specified while creating a new build tree, check for an environment variable of the same name.
* | | | CMakeParseImplicitLinkInfo: Honor GNU static runtime library flagsBrad King2021-06-035-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With flags like `-static-libstdc++` or `-static-libgfortran`, the GNU compiler driver adds `-Bstatic ... -Bdynamic` around its language runtime library. Convert the libraries in between these to absolute paths so that mixed-language linking honors the static runtime libraries.
* | | | Tests: Extend ParseImplicit*Info with static GNU runtime library flagsBrad King2021-06-0311-0/+248
| | | | | | | | | | | | | | | | | | | | Generate sample input data with GNU 10.2.1 compilers using flags like `-static-libstdc++` and `-static-libgfortran`.
* | | | Tests: Teach RunCMake.ParseImplicitLinkInfo to match output by regexBrad King2021-06-0330-35/+35
|/ / / | | | | | | | | | | | | As in commit 6bc6fc2a7f (Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex, 2019-04-08, v3.14.2~5^2~1).
* | | Merge topic 'find_item-NO_CACHE'Brad King2021-06-0312-0/+599
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87b71eec62 find_*: Add support for option NO_CACHE Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6181
| * | | find_*: Add support for option NO_CACHEMarc Chevrier2021-06-0212-0/+599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Request that find result is stored in a normal variable rather than a cache entry. Fixes: #20687 Issue: #20743
* | | | Merge topic 'ctest-coverage-no-dir'Brad King2021-06-032-0/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5d5610b04f CTest: Exit coverage handling early if no binary dir Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6144
| * | | | CTest: Exit coverage handling early if no binary dirJoseph Snyder2021-06-022-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for the existence of the Binary directory string before checking for coverage files. If the directory is not specified, write an error message and do not do any checking. Fixes: #22102
* | | | | cmake_transform_depfile: Remove unused incomplete vstlog supportBrad King2021-06-021-4/+0
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit b2c14bc774 (cmake -E: Add cmake_transform_depfile internal command, 2020-10-02, v3.20.0-rc1~684^2~2) a partial implementation for converting MSBuild "TLog" format files was added. However, it is unused and incomplete: * Does not enforce absolute paths as TLog docs require. * Does not upper-case paths as TLog docs recommend. * The TLog format semantics are not equivalent to `out: in`. Remove the unused TLog transform infrastructure to avoid confusion. Issue: #20286
* | | | Merge topic 'command_target'Brad King2021-06-022-0/+27
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1cb4f592a0 add_custom_command: Target-dependent generator expression support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6176