summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* ExternalProject: Factor out an internal helper to add a step targetBrad King2020-09-101-3/+4
|
* Merge topic 'pch-instantiate-templates'Brad King2020-09-104-1/+41
|\ | | | | | | | | | | | | | | | | | | 8c8f03422e PCH: Template instantiation support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Acked-by: Cristian Adam <cristian.adam@gmail.com> Tested-by: Raul Tambre <raul@tambre.ee> Merge-request: !5168
| * PCH: Template instantiation supportTobias Hieta2020-09-024-1/+41
| | | | | | | | | | | | | | | | Adds PCH_INSTANTIATE_TEMPLATES target property for enabling template instantiation in precompiled headers. Enabled by default. Currently only supported for Clang 11 and newer. Implements #21133.
* | Merge topic 'custom-command-dedup'Brad King2020-09-1012-0/+56
|\ \ | | | | | | | | | | | | | | | | | | | | | 45fedf0e17 Makefile: Add policy CMP0113 to avoid duplication of custom commands 844779bdc1 cmMakefileTargetGenerator: Simplify custom command output collection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5204
| * | Makefile: Add policy CMP0113 to avoid duplication of custom commandsBrad King2020-09-0812-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not attach a custom command to a target if it is already attached to one of the target's dependencies. The command's output will be available by the time the target needs it because the dependency containing the command will have already been built. This may break existing projects that do not properly mark non-created outputs with the `SYMBOLIC` property. Previously a chain of two custom commands whose intermediate dependency is not created would put both commands in a dependent project's Makefile even if the first command is also in its dependency's Makefile. The first command would run twice but the build would work. Now the second command needs an explicit `SYMBOLIC` mark on its input to tell CMake that it is not expected to exist. To maintain compatibility with projects that left out the mark, add a policy activating the behavior.
* | | Merge topic 'json-helpers'Brad King2020-09-102-0/+494
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b2f3f831e2 Refactor: Use JSON helpers in CTest resource spec 3f3a30e1e0 JSON: Add helpers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5197
| * | | JSON: Add helpersKyle Edwards2020-09-092-0/+494
| | | |
* | | | Merge topic 'optimize-old-expand'Brad King2020-09-1015-15/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 62d7acc6d4 cmCommandArgumentParserHelper: rework input handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5208
| * | | | cmCommandArgumentParserHelper: rework input handlingOleksandr Koval2020-09-0915-15/+15
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Old implementation uses involved Flex input management technique that requires usage of obsolete YY_INPUT macro. This causes a lot of useless allocations and byte-by-byte scanning. New implementation avoids those hacks, it uses yy_scan_string() API to setup Flex input. Also it fixes reporting of syntax error position and corresponding tests.
* | | | Merge topic 'automoc-rerun-missing-dependency'Brad King2020-09-108-0/+117
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ac3503d30 AutoMoc: Re-run moc if a dependency is missing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5180
| * | | | AutoMoc: Re-run moc if a dependency is missingJoerg Bornemann2020-09-098-0/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AutoMoc uses the moc-emitted dependency file of Qt 5.15 to track dependencies. Such a dependency may well live outside the project and can vanish, for example when installing a new compiler version. This situation was detected before, but merely a warning was issued. Now, we're considering a generated file as out of date if a dependency is missing and re-generate it. We also have to remove the missing dependency from the ParseCache. Otherwise the AUTOMOC target for all generators other than Ninja will always be out of date. The ParseCacheChanged flag had to be made atomic, because we're potentially accessing it from multiple threads. The dependencies vector itself is not vulnerable in this regard, because there's one vector per file, and we're accessing exactly one ParseCacheT::FileHandleT per thread. Fixes: #21136
* | | | | Merge topic 'file-real_path'Brad King2020-09-098-0/+27
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | be36266dab file(): Add REAL_PATH sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5202
| * | | | file(): Add REAL_PATH sub-commandMarc Chevrier2020-09-088-0/+27
| | | | |
* | | | | Merge topic 'cmstrlen'Kyle Edwards2020-09-091-0/+10
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | 0c9cdf30ed cmStringAlgorithms: Add cmStrLen() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5201
| * | | | cmStringAlgorithms: Add cmStrLen()Kyle Edwards2020-09-081-0/+10
| | | | |
* | | | | ISPC tests will now run on any hardware that only supports SSE2Robert Maynard2020-09-082-4/+4
| |/ / / |/| | | | | | | | | | | Previously we expected AVX1 support.
* | | | Merge topic 'ispc_improvements'Brad King2020-09-0845-4/+418
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a020787a9b ISPC: Support generation for multiple instruction sets 5a1750017e ISPC: Add compiler launcher support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5173
| * | | | ISPC: Support generation for multiple instruction setsRobert Maynard2020-09-0434-3/+390
| | | | |
| * | | | ISPC: Add compiler launcher supportRobert Maynard2020-09-0312-1/+28
| | | | |
* | | | | Merge topic 'cm-optional-comparison'Kyle Edwards2020-09-081-118/+197
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7e1304c6e6 cm::optional: Add comparison operators c854e9eba5 Refactor: Add ASSERT_TRUE() macro to testOptional.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5195
| * | | | | cm::optional: Add comparison operatorsKyle Edwards2020-09-071-0/+158
| | | | | |
| * | | | | Refactor: Add ASSERT_TRUE() macro to testOptional.cxxKyle Edwards2020-09-061-118/+39
| | |/ / / | |/| | |
* | | | | cmake_path command: path managementMarc Chevrier2020-09-06179-0/+1690
|/ / / / | | | | | | | | | | | | Fixes: #19568, #20922
* | | | Merge topic 'external_project_download_stability'Brad King2020-09-041-1/+5
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | bbfdbe25a1 Improve the stability of the ExternalProject download tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5183
| * | | Improve the stability of the ExternalProject download testsThomas Bernard2020-09-021-1/+5
| | | |
* | | | Merge branch 'master' into ninja-multi-automoc-regressionKyle Edwards2020-09-02682-639/+5793
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Tests: Tell Xcode to disallow signing altogether in relevant casesBrad King2020-09-016-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | The Xcode 'new build system' rejects empty signing identities unless signing is explicitly marked as not allowed. Update test cases where we turn off signing to explicitly disallow it too. Also turn off signing in the XCTest test.
| * | Tests: Update RunCMake.CommandLine to avoid duplicate custom commandsBrad King2020-09-012-10/+32
| | | | | | | | | | | | | | | This test does not need to have the same custom command output generated by multiple independent targets. Revise the test to avoid that.
| * | Tests: Remove workaround from RunCMake.ExternalProject MultiCommand caseBrad King2020-09-011-4/+0
| | | | | | | | | | | | | | | | | | Since commit 7249ba9677 (ExternalProject: Enforce that patch depends on update, 2020-04-03, v3.18.0-rc1~403^2) we do not need the workaround in the MultiCommand case.
| * | Merge topic 'target_genex_dependency'Brad King2020-09-016-1/+35
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | f14b390198 GenEx: Remove unneeded dependencies from target info queries Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Merge-request: !5127
| | * | GenEx: Remove unneeded dependencies from target info queriesRobert Maynard2020-09-016-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only generate a graph dependency between a custom command and a target when the custom command queries for the file path of an artifact of the target. This makes generator expressions such as `TARGET_FILE_DIR` behave the same way as `TARGET_PROPERTY` which never generated a graph dependency.
| * | | Merge topic 'xcode-link-phase-all'Craig Scott2020-09-0112-0/+221
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 525464ed2a Xcode: Use "Link Binary With Libraries" build phase in some cases dc0898205c Xcode: Add special case for file type extension map for .xcassets 7b3d8411a2 Xcode: Refactor build setting append code and attribute getter naming Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5036
| | * | | Xcode: Use "Link Binary With Libraries" build phase in some casesGusts Kaksis2020-08-3112-0/+221
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | OBJECT and STATIC libraries (framework or non-framework) do not use this build phase. Not all items to be linked use this build phase either. Co-Authored-By: Craig Scott <craig.scott@crascit.com>
| * | | Merge topic 'file_chmod'Brad King2020-09-0123-0/+100
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7de60beddf file: Add CHMOD and CHMOD_RECURSE subcommands Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Marc Chevrier <marc.chevrier@gmail.com> Merge-request: !5122
| | * | | file: Add CHMOD and CHMOD_RECURSE subcommandsSibi Siddharthan2020-08-2623-0/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21057 Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
| * | | | Merge topic 'ispc_lang_support'Brad King2020-09-0119-0/+283
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5ece12b7e4 gitlab-ci: add ISPC to the Fedora CI image 8976817d6d ISPC: Update help documentation to include ISPC 2368f46ba4 ISPC: Support building with the MSVC toolchain e783bf8aa6 ISPC: Support ISPC header generation byproducts and parallel builds 34cc6acc81 Add ISPC compiler support to CMake 419d70d490 Refactor some swift only logic to be re-used by other languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5065
| | * | | | ISPC: Support ISPC header generation byproducts and parallel buildsRobert Maynard2020-08-2812-29/+71
| | | | | |
| | * | | | Add ISPC compiler support to CMakeRobert Maynard2020-08-2817-0/+241
| | | | | |
| * | | | | Merge topic 'automoc-depend-project-file'Brad King2020-09-017-0/+146
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 776059ef0f Merge branch 'backport-3.17-automoc-depend-project-file' 6b20bbd2dd AutoMoc: Restore support for re-running after project file changes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5166
| * \ \ \ \ \ Merge topic 'UseSWIG-interface-option'Brad King2020-09-018-0/+62
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d264685bee UseSWIG: Update option -interface usage Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5172
| * | | | | | Merge topic 'ExternalProject-test-download-timeout'Brad King2020-08-311-5/+12
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | beab8bc29a Tests: Add timeout on the RunCMake.ExternalProject download server Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5167
| | * | | | | Tests: Add timeout on the RunCMake.ExternalProject download serverThomas Bernard2020-08-271-5/+12
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | Fixes: #21132
| * | | | | Merge topic 'ctest-FATAL_ERROR'Brad King2020-08-2715-3/+38
| |\ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a6f1d1edd CTest: exit nonzero after message(SEND_ERROR|FATAL_ERROR) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5154
| | * | | | CTest: exit nonzero after message(SEND_ERROR|FATAL_ERROR)Kevin Puetz2020-08-2615-3/+38
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21004
| * | | | | Merge topic 'win32-executable-genex'Brad King2020-08-2510-0/+76
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3ef0c40962 WIN32_EXECUTABLE: Add support for generator expressions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5146
| | * | | | | WIN32_EXECUTABLE: Add support for generator expressionsKyle Edwards2020-08-2110-0/+76
| | |/ / / /
| * | | | | Merge topic 'file_generate_target'Brad King2020-08-254-0/+23
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 27a912193b file(GENERATE): Add TARGET argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5131
| | * | | | | file(GENERATE): Add TARGET argumentRaul Tambre2020-08-204-0/+23
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds TARGET argument to file(GENERATE) to make resolving generator expressions requiring a target possible. Implements #21101, fixes #21074.
| * | | | | Merge topic 'unk_imported_location'Brad King2020-08-2521-11/+81
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 359c500a24 cmTarget: Raise error if imported target location is not set Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5113
| | * | | | | cmTarget: Raise error if imported target location is not setRaul Tambre2020-08-2121-11/+81
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we would synthesize <TARGET_NAME>-NOTFOUND as the location. This would then end up on the link line and cause build failures. Policy CMP0110 is added to control this behaviour. Fixes #19080, #19943.