summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'vs2022'Brad King2021-06-284-9/+9
|\ | | | | | | | | | | | | | | | | | | 93c718791e VS: Use 64-bit MSBuild in VS 2022 c46b265839 VS: Add Visual Studio 17 2022 generator b610b7a35c VS: Update v142 CL flag table for VS 17.0 Preview 1 43375c6418 Help: Remove unnecessary Sphinx versionadded markup in VS toolset selection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6268
| * VS: Add Visual Studio 17 2022 generatorBrad King2021-06-254-9/+9
| | | | | | | | Fixes: #22339
* | Merge topic 'test-RunCMake.GenEx-names'Brad King2021-06-28221-176/+176
|\ \ | | | | | | | | | | | | | | | | | | a95cbf3890 Tests: Shorten RunCMake.GenEx-* case names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6269
| * | Tests: Shorten RunCMake.GenEx-* case namesBrad King2021-06-25221-176/+176
| |/ | | | | | | Reduce the length of the longest path on disk needed by the tests.
* | cmELF: Include the ELF parsing code unconditionallyAlex Richardson2021-06-242-6/+2
| | | | | | | | | | Now that the ELF definitions are provided on all platforms there is no need to keep the CMake_USE_ELF_PARSER option.
* | cmELF: Allow building without system ELF headersAlex Richardson2021-06-242-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ELF headers vendored in `Utilities/cmelf` to get the ELF constants and types. Using the same ELF definition header for all compilation targets allows removing some #ifdefs depending on the host OS since we know all required ELF constants will always be present. To reduce the size of this commit, the CMake_USE_ELF_PARSER definite will be removed in a separate commit. This allows me to use CMAKE_BUILD_WITH_INSTALL_RPATH=False and the Ninja generator on macOS, whereas before it would always give me the following error message (despite cross-compiling for an ELF-based platform): ``` The install of the <name> target requires changing an RPATH from the build tree, but this is not supported with the Ninja generator unless on an ELF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH variable may be set to avoid this relinking step. ```
* | Merge topic 'FindPkgConfig-PKG_CONFIG-args'Brad King2021-06-214-0/+54
|\ \ | | | | | | | | | | | | | | | | | | 35d3e00e4e FindPkgConfig: split args if loaded from environment Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6222
| * | 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>
* | ctest: allow test output to add labelsZack Galbreath2021-06-172-0/+41
|/ | | | | Parse test output for <CTestLabel>...</CTestLabel>. If found, add this value to the list of labels associated with this test.
* 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.