summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Utilities/Release: remove old macOS release scriptBen Boeckel2020-09-161-4/+0
| | | | | | | | | | | | | | | | macOS releases are now made by GitLab-CI.
* | | | Merge topic 'ExternalProject-steps-refinement'Brad King2020-09-1532-38/+378
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | b4fc4da903 ExternalProject: Add policy CMP0114 to refine step target dependencies f5791e24c6 Tests: Match RunCMake.ExternalProject NO_DEPENDS output more strictly b637ef494c ExternalProject: Factor out an internal helper to add a step target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5215
| * | | ExternalProject: Add policy CMP0114 to refine step target dependenciesBrad King2020-09-1431-6/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `ExternalProject_Add_StepTargets` and `INDEPENDENT_STEP_TARGETS` have some limitations and lack some sanity checks. They can cause confusing build systems to be generated. The basic problems are: * The notion of step independence is attached to the step target rather than the step itself. * The custom commands implementing the steps are duplicated in the step targets and the primary targets. This can cause races. It is also incompatible with the Xcode "new build system". Fix this by introducing policy CMP0114 to change the way step target dependencies are handled. Define independence from external dependencies as a property of each individual step regardless of whether there is a target for it. Add dependencies among the primary target and the step targets such that each custom command only appears in one target. When some steps are disconnected from the primary target, add step targets for the steps commonly depended upon so that there is a place to hold their custom commands uniquely. Fixes: #18663
| * | | Tests: Match RunCMake.ExternalProject NO_DEPENDS output more strictlyBrad King2020-09-101-18/+38
| | | |
| * | | ExternalProject: Factor out an internal helper to add a step targetBrad King2020-09-101-3/+4
| | | |
* | | | Merge topic 'test-pch-instantiate-templates'Brad King2020-09-141-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0512e94eb0 Tests: Fix PchInstantiateTemplates case on macOS with CMAKE_OSX_ARCHITECTURES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5217
| * | | | Tests: Fix PchInstantiateTemplates case on macOS with CMAKE_OSX_ARCHITECTURESBrad King2020-09-111-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | Update the test added by commit 8c8f03422e (PCH: Template instantiation support, 2020-08-28) to recognize flags on PCH files whose names include the architecture. This occurs when `CMAKE_OSX_ARCHITECTURES` is set.
* | | | Merge topic 'import-export-doc'Brad King2020-09-141-1/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3310801aab Help: Add Importing and Exporting Guide Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5157
| * | | | Help: Add Importing and Exporting GuideBetsy McPhail2020-09-111-1/+39
| | |/ / | |/| |
* | | | Merge topic 'ispc_window_failures'Brad King2020-09-116-12/+49
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | bf88a94d88 ISPC: CompilerLauncher tests work properly with x86 builds 8de145cae1 ISPC: DynamicLibrary test now passes on windows. a83521e082 ISPC: Use the `obj` file extension for objects on windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5213
| * | | ISPC: CompilerLauncher tests work properly with x86 buildsRobert Maynard2020-09-101-0/+4
| | | |
| * | | ISPC: DynamicLibrary test now passes on windows.Robert Maynard2020-09-105-12/+45
| |/ / | | | | | | | | | | | | | | | | | | | | | The MSVC linker needs to know what MSVC runtime a shared library needs. ISPC objects don't have a '/DIRECTIVE' entry for the MSVC runtime as they have no dependency on it. Therefore we need to add a C or C++ source to each shared library so the MSVC linker knows what runtime to embed
* | | 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