summaryrefslogtreecommitdiff
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* UseSWIG: Add OUTPUT_DIR and OUTFILE_DIR source file propertiesMarc Chevrier2020-09-309-1/+166
| | | | | | | These properties enable to manage output directories on per source file basis. Fixes: #21250
* Merge topic 'cmake_language-DEFER'Brad King2020-09-30136-24/+440
|\ | | | | | | | | | | | | | | | | | | | | | | | | e8b0359a43 cmake_language: Add signature to DEFER calls to later times 9880549405 cmake_language: Make all errors fatal 4f33f3dcff cmake_language(CALL): Accept empty ${var} expansions 4ebe9c4ce1 cmake_language(EVAL): Factor out internal helper 78ff24a3a7 Help: Use singular placeholder name in cmake_language signature edd60d4419 Tests: Simplify RunCMake.cmake_language invalid command cases 1a5bf8245e cmMakefile: Clarify name of internal list file run method Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5262
| * cmake_language: Add signature to DEFER calls to later timesBrad King2020-09-29126-1/+418
| | | | | | | | Fixes: #19575
| * cmake_language(CALL): Accept empty ${var} expansionsBrad King2020-09-296-6/+6
| | | | | | | | | | Factor out an internal helper. Generalize partial argument expansion and call the helper on a clean boundary between raw arguments.
| * Tests: Simplify RunCMake.cmake_language invalid command casesBrad King2020-09-295-17/+16
| |
* | Merge topic 'find-package-check-empty-version-range'Craig Scott2020-09-3015-28/+80
|\ \ | | | | | | | | | | | | | | | | | | 212b0afb66 find_package: raise error on empty version range Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5294
| * | find_package: raise error on empty version rangeMarc Chevrier2020-09-2915-28/+80
| |/
* | Merge topic 'vs-mixed-lang-std'Brad King2020-09-303-0/+32
|\ \ | | | | | | | | | | | | | | | | | | b325484928 VS: Fix C language standard in target with C++ sources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5295
| * | VS: Fix C language standard in target with C++ sourcesBrad King2020-09-293-0/+32
| |/ | | | | | | | | | | Add C-language standard to target-wide C++ settings. Fixes: #21195
* | Merge topic 'cxx-as-objcxx'Brad King2020-09-303-0/+12
|\ \ | | | | | | | | | | | | | | | | | | 8a2977ba55 OBJCXX: Fix regression for compiling cpp files as objcxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5296
| * | OBJCXX: Fix regression for compiling cpp files as objcxxCristian Adam2020-09-293-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 8d61294c3e (PCH: Mark CMake PCH source files as -x <lang>-header, 2020-09-04, v3.18.3~14^2) we removed the explicit `-x objective-c++` flag. This broke cases with custom source extensions. Restore the explicit `-x objective-c[++]` flag and put it before the `<FLAGS>` placeholder. The latter will contain the proper `-x objective-c[++]-header` value and will override the `-x objective-c[++]` value set before. Fixes: #21234
| * | Merge topic 'foreach-int-parse-range-check' into release-3.18Brad King2020-09-214-0/+9
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 0412b55b83 foreach: Fix crash parsing integer out of range Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5239
* | \ \ Merge topic 'cmake-gui-environment'Kyle Edwards2020-09-2913-2/+459
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 85f5009d27 CMake GUI: Add environment editor d6c051c126 Tests: Add some basic configure tests for the CMake GUI 7cd95d9996 Tests: Add CatchShow helper for CMake GUI tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5270
| * | | CMake GUI: Add environment editorKyle Edwards2020-09-287-0/+218
| | | |
| * | | Tests: Add some basic configure tests for the CMake GUIKyle Edwards2020-09-286-0/+92
| | | |
| * | | Tests: Add CatchShow helper for CMake GUI testsKyle Edwards2020-09-285-2/+149
| | | |
* | | | Merge topic 'ctest_launch_report_make_errors'Brad King2020-09-296-2/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a8b7dd061b ctest: improve Unicode support for launchers ab9ad2a6a0 ctest: report make-level errors to CDash when using launchers 56e4e942d2 ctest: split launcher XML writer into separate class Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Merge-request: !5266
| * | | | ctest: report make-level errors to CDash when using launchersZack Galbreath2020-09-286-2/+30
| |/ / / | | | | | | | | | | | | Fixes: #19545
* | | | Merge topic 'system_include_dir_caching_pre_lang'Brad King2020-09-295-0/+45
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | b6418155f3 cmGeneratorTarget: Include Cache now occurs per language+config Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5274
| * | | 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 'xcode-restore-ios-tests'Brad King2020-09-281-14/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2092ab08fe xcode: conditionally enable combined install tests 62ce9e16e0 xcode: annotate test output with selected SDK Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5271
| * | | | xcode: conditionally enable combined install testsGregor Jasny2020-09-251-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new Xcode 12 build system does not support recursive invocation. Therefore lazily triggered builds for the corresponding platform which run during the `install` target fail with: ``` error: unable to attach DB: error: accessing build database ``` While looking for a work-around we conditionally disable those tests. Issue: #21206
| * | | | xcode: annotate test output with selected SDKGregor Jasny2020-09-251-8/+8
| |/ / /
* | | | CUDA: Clang separable compilationRaul Tambre2020-09-242-23/+20
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For NVCC the compiler takes care of device linking when passed the "-dlink" flag. Clang doesn't support such magic and requires the buildsystem to do the work that NVCC does behind the scenes. The implementation is based on Bazel's device linking documentation: https://github.com/tensorflow/tensorflow/blob/7cabcdf073abad8c46e9dda62bb8fa4682d2061e/third_party/nccl/build_defs.bzl.tpl#L259 Closes: #20726
* | | 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