summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* cmGeneratorTarget: Include Cache now occurs per language+configRobert Maynard2020-09-255-0/+45
| | | | | Previously only occurred per config which broke per-language system includes.
* Merge topic 'cmake-gui-tests'Brad King2020-09-2412-0/+406
|\ | | | | | | | | | | | | | | | | | | 1dcc569828 gitlab-ci: Add GUI testing to each OS 4c6e5cd0fa Tests: Add some basic tests for CMake GUI 41e223deb3 CMake GUI: Split up into libraries, add test shim b7995b62f0 QCMakeCacheView: Default to nullptr for parent Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5224
| * Tests: Add some basic tests for CMake GUIKyle Edwards2020-09-2312-0/+406
| |
* | Merge topic 'proper_device_libraries_architecture'Brad King2020-09-241-0/+5
|\ \ | | | | | | | | | | | | | | | | | | 1cd4a37c12 Tests: Use sm_35 in Cuda.ProperDeviceLibraries for CUDA <10.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5261
| * | Tests: Use sm_35 in Cuda.ProperDeviceLibraries for CUDA <10.0Raul Tambre2020-09-231-0/+5
| |/ | | | | | | | | | | Using the cublas device libraries seems to require at least sm_35. Set the architecture explicitly to sm_35 for old CUDA versions, which still have the cublas device library.
* | Merge topic 'check-source-modules'Brad King2020-09-2428-0/+235
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 357e2ef429 CheckSoureRuns: Add a unified way to check if a source runs 10ae907de0 CheckSoureCompiles: Add a unified way to check if a source compiles f5c928f73c Add a test to verify '\' handling in CHECK_CXX_SOURCE_COMPILES Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5223
| * | CheckSoureRuns: Add a unified way to check if a source runsRobert Maynard2020-09-2314-0/+112
| | |
| * | CheckSoureCompiles: Add a unified way to check if a source compilesRobert Maynard2020-09-2314-0/+119
| | |
| * | Add a test to verify '\' handling in CHECK_CXX_SOURCE_COMPILESRobert Maynard2020-09-231-0/+4
| |/
* | Merge topic 'obj-lib-per-config-source'Brad King2020-09-242-1/+24
|\ \ | | | | | | | | | | | | | | | | | | | | | 2f76e7429b OBJECT libraries: Properly recognize if sources depend on configuration d575ecc9de cmGeneratorTarget: Better name for internal variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5252
| * | OBJECT libraries: Properly recognize if sources depend on configurationDeniz Bahadir2020-09-232-1/+24
| | | | | | | | | | | | Fixes: #21198
* | | Merge topic 'find_package-version-range'Craig Scott2020-09-2440-0/+500
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | 5b3356263c CMakePackageConfigHelpers: Add version range support 6bfc442fde FPHSA: add support of version range d7df81067b find_package: Add support of version range 09095dbcd2 cmFindPackageCommand: Refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5226
| * | CMakePackageConfigHelpers: Add version range supportMarc Chevrier2020-09-232-0/+18
| | |
| * | FPHSA: add support of version rangeMarc Chevier2020-09-2319-0/+51
| | |
| * | find_package: Add support of version rangeMarc Chevier2020-09-2319-0/+431
| | | | | | | | | | | | This enhancement is the first step for solving issue #21107
* | | Merge topic 'separate_arguments-program'Brad King2020-09-2315-0/+132
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d832c1cc7d separate_arguments: add option PROGRAM f4c21d4953 separate_arguments: refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5253
| * | | separate_arguments: add option PROGRAMMarc Chevrier2020-09-229-0/+96
| | | | | | | | | | | | | | | | Fixes: #21217
| * | | separate_arguments: refactoringMarc Chevrier2020-09-227-0/+36
| |/ /
* | | Merge topic 'test-issue-21144'Brad King2020-09-232-0/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e02f677f61 Tests: Add test for early source lookup of file(GENERATE) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5248
| * | | Tests: Add test for early source lookup of file(GENERATE)Josef Angstenberger2020-09-212-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output file structures of file(GENERATE) have to be created early to be able to use the generated files in source lists. This was not done correctly for subdirectories which has been fixed in commit aee2c51224 (file(GENERATE): Create output file structures for all directories first, 2020-09-10). Add a test case to address issue #21144.
* | | | Merge topic 'install-EXPORT-source-CONFIG'Brad King2020-09-231-0/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bf114602da install(EXPORT): Fix exporting target w/ source named using CONFIG genex Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5240
| * | | | install(EXPORT): Fix exporting target w/ source named using CONFIG genexDeniz Bahadir2020-09-221-0/+15
| | | | | | | | | | | | | | | | | | | | Fixes: #21203
* | | | | Merge topic 'cuda_tests_architecture'Brad King2020-09-2323-61/+30
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4fe9f534f5 Tests: Don't unnecessarily set CUDA_ARCHITECTURES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5246
| * | | | | Tests: Don't unnecessarily set CUDA_ARCHITECTURESRaul Tambre2020-09-2123-61/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Architecture 30 was removed with CUDA 11, so most of the CUDA tests fail with it. Remove setting the architecture and bump the minimum version to 3.18, so CMP0104 takes effect and we can rely on the default architecture, which is guaranteed to be compilable. Use of __ldg() in ProperLinkFlags was removed as it only affects performance and is available only on sm_35 and above. Testing the functionality of CUDA_ARCHITECTURES is already covered by CudaOnly.Architecture and CudaOnly.CompileFlags.
* | | | | | {get,set}_property: Add support for referencing binary directoriesBrad King2020-09-232-0/+30
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Index directories by their binary directory path in addition to their source directory path. Fixes: #19262
* | | | | Merge topic 'cmake_path-updates'Brad King2020-09-221-0/+3
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 82c9508313 cmake_path: enhancements Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !5245
| * | | | cmake_path: enhancementsMarc Chevrier2020-09-201-0/+3
| |/ / / | | | | | | | | | | | | | | | | * Fix error on parsing "c:a" (root-name without root-directory) * Enrich documentation
* | | | Merge topic 'file-ARCHIVE-compression-level'Brad King2020-09-2216-0/+191
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 195d14e781 file(ARCHIVE_CREATE): Add option to control compression level Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !5242
| * | | file(ARCHIVE_CREATE): Add option to control compression levelAsit Dhal2020-09-2116-0/+191
| | |/ | |/| | | | | | | Fixes: #21125
* | | Merge topic 'xcode-12-new-build-system'Brad King2020-09-2151-44/+238
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b8ecd4df5f ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system" fe258f6382 Tests: Skip RunCMake.XcodeProject device cases for Xcode "new build system" 1c3d2d0951 Tests: Skip Qt*Autogen.MocSkipSource case for Xcode "new build system" 542884e527 Tests: Update RunCMake.XcodeProject cases for Xcode "new build system" 832a78be2d Tests: Update BuildDepends test for Xcode "new build system" ff76c51ec3 Tests: Update RunCMake.file case with workaround for Xcode "new build system" 1806cdd17c Tests: Avoid duplicate custom commands for Xcode "new build system" 8d5f4c4db9 Xcode: Switch to the "new build system" for Xcode 12 and above ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5229
| * | | ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system"Brad King2020-09-1810-8/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The ExternalProject module cannot be implemented in the Xcode "new build system" without using CMP0114's NEW behavior. When configuring for that build system, warn if the policy is not set to NEW and use NEW behavior anyway.
| * | | Tests: Skip RunCMake.XcodeProject device cases for Xcode "new build system"Brad King2020-09-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Xcode "new build system" selects different architectures for device builds than the old build system does. Skip those tests on Xcode 12+ pending further investigation. Issue: #21206
| * | | Tests: Skip Qt*Autogen.MocSkipSource case for Xcode "new build system"Brad King2020-09-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test case enables AUTOMOC on the same sources in two separate targets. This causes the `moc_*.cpp` generation custom commands to be added to multiple `_autogen` targets, which is not allowed by the Xcode "new build system". Skip the part of the test that triggers this problem for now. Issue: #21205
| * | | Tests: Update RunCMake.XcodeProject cases for Xcode "new build system"Brad King2020-09-181-1/+3
| | | |
| * | | Tests: Update BuildDepends test for Xcode "new build system"Brad King2020-09-182-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Xcode somehow tracks what we're running inside a custom command, so we cannot prevent it from regenerating the `noregen.h` header even though we do not declare any dependencies of it.
| * | | Tests: Update RunCMake.file case with workaround for Xcode "new build system"Brad King2020-09-181-0/+6
| | | |
| * | | Tests: Avoid duplicate custom commands for Xcode "new build system"Brad King2020-09-182-0/+15
| | | |
| * | | Xcode: Switch to the "new build system" for Xcode 12 and aboveBrad King2020-09-1821-3/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide an option to switch back to the original build system via `-T buildsystem=1`. Fixes: #18088
| * | | Xcode: Add option to specify build system variantBrad King2020-09-1810-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | Extend the `-T <toolset>` option to support a `buildsystem=` field with the Xcode generator. Add a `CMAKE_XCODE_BUILD_SYSTEM` variable to inform project code about the selected build system variant.
| * | | Tests: Avoid duplicate custom commands in QtAutogen.AutogenOriginDependsOffBrad King2020-09-183-6/+11
| | | |
| * | | Tests: Remove RunCMake.ExternalProject unnecessary CMake version checkBrad King2020-09-151-2/+0
| | | |
| * | | Tests: Simplify RunCMake.ExternalProject Add_StepDependencies stderrBrad King2020-09-154-24/+2
| | | | | | | | | | | | | | | | | | | | Set CMP0114 to OLD for this case to suppress the policy warning. The warning is covered by the `NO_DEPENDS-CMP0114-WARN` case.
* | | | Merge topic 'foreach-int-parse-range-check'Brad King2020-09-214-0/+9
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 0412b55b83 foreach: Fix crash parsing integer out of range Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5239
| * | | foreach: Fix crash parsing integer out of rangeBen McMorran2020-09-184-0/+9
| | | |
* | | | Merge topic 'rel-drop-old'Brad King2020-09-181-17/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a88e6332f Utilities/Release: Drop now-unused scripts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5234
| * | | | Utilities/Release: Drop now-unused scriptsBrad King2020-09-171-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since these commits: * commit ab2276e6b9 (Utilities/Release: remove old macOS release script, 2020-09-16) * commit 7670ba8b0a (Utilities/Release: Drop win{32,64} scripts in favor of docker build, 2020-05-05, v3.18.0-rc1~203^2) * commit 689fdbfc61 (Utilities/Release: Drop linux64 script in favor of docker build, 2019-08-27, v3.16.0-rc1~184^2) several scripts we once used for producing release binaries for distribution on `cmake.org` are no longer needed.
* | | | | Merge topic 'ninja-multi-automoc-regression'Brad King2020-09-185-7/+27
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | 23fe4b861f Ninja Multi-Config: Fix dependencies of custom commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5238
| * | | | Ninja Multi-Config: Fix dependencies of custom commandsKyle Edwards2020-09-175-7/+27
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a9fd3a10 addressed the scenario where the depending target is a utility target, but not the scenario where the dependent target is a utility target. Account for this scenario. Also add a Qt-specific test case. Fixes: #21118
* | | | Merge topic 'string-json-support'Brad King2020-09-1715-0/+382
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8eab76eb84 string(JSON): Adds JSON parsing support to the string command Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5159
| * | | string(JSON): Adds JSON parsing support to the string commandPeter Steneteg2020-09-1615-0/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a set of sub commands to the string command for parsing JSON, the JSON commands are: GET, TYPE, MEMBER, LENGTH, REMOVE, SET, and EQUAL. Closes: #19501