summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cpack_test'Brad King2018-09-042-1/+20
|\ | | | | | | | | | | | | 7a7e94d6f7 CPack (DEB/RPM): add test for per-component description/summmary. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2333
| * CPack (DEB/RPM): add test for per-component description/summmary.David Faure2018-08-302-1/+20
| |
* | Merge topic 'no-sanitizer-logfile'Brad King2018-08-3110-10/+0
|\ \ | |/ |/| | | | | | | | | 5aaaee5e9e ctest_memcheck: Change failure to find log file from error to warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2323
| * ctest_memcheck: Change failure to find log file from error to warningBetsy McPhail2018-08-2810-10/+0
| | | | | | | | | | | | | | | | | | | | | | Sanitizers do not create a log file when no defects are found. Therefore, it is currently impossible for ctest_memcheck to set both `CAPTURE_CMAKE_ERROR` and `RETURN_VALUE` to zero. With defects, `CAPTURE_CMAKE_ERROR`=0 and `RETURN_VALUE`=-1, as expected. With no defects, `CAPTURE_CMAKE_ERROR`=-1 and `RETURN_VALUE`=0.
* | Merge topic 'cpack-ext-stage-and-run'Brad King2018-08-305-2/+31
|\ \ | | | | | | | | | | | | | | | | | | 4a0f664aaf CPackExt: Add CPACK_EXT_ENABLE_STAGING and CPACK_EXT_PACKAGE_SCRIPT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2272
| * | CPackExt: Add CPACK_EXT_ENABLE_STAGING and CPACK_EXT_PACKAGE_SCRIPTNils Gladitz2018-08-145-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | CPACK_EXT_ENABLE_STAGING enables optional staging and CPACK_EXT_PACKAGE_SCRIPT allows to specify an optional script file that can package staged files via an external packaging tool. Issue: #18236
* | | Merge topic 'FindPackageModeMakefileTest-use-explicit-linkage'Brad King2018-08-302-0/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 03f22cd188 FindPackageModeMakefileTest: Explicitly use C linkage Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2328
| * | | FindPackageModeMakefileTest: Explicitly use C linkageChuck Atkins2018-08-292-0/+10
| | |/ | |/| | | | | | | | | | | | | | | | This explicitly uses C linkage for the library code used by the test to work around some compilers (Solaris Studio 12.4) that implicitly assume incorrect linkage information. Since something else entirely is being tested here, this allows the test to proceed as needed on the affected platforms.
* | | Merge topic 'android-ndk-r18'Brad King2018-08-302-6/+12
|\ \ \ | |/ / |/| | | | | | | | | | | | | | ca97d4cb5f Android: Add support for NDK r18 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2319
| * | Android: Add support for NDK r18Brad King2018-08-282-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NDK r18 drops GCC toolchains and some STL types. We need to choose a clang toolchain by default when no gcc toolchains are available. Switch the STL type default to `c++_static` when the old `gnustl_static` default is not available. Update the test suite to not run tests for STL types that do not exist. Also do not expect the gcc toolchain `cpp` tool to be available because r18 does not provide it. Also teach it to tolerate `gcc -dumpmachine` output like `arm--linux-android` that differs from the toolchain prefix. Fixes: #18301
* | | Merge topic 'static-lib-options'Brad King2018-08-279-0/+73
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 974de0e199 static library: add property STATIC_LIBRARY_OPTIONS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2290
| * | | static library: add property STATIC_LIBRARY_OPTIONSMarc Chevrier2018-08-159-0/+73
| | | | | | | | | | | | | | | | issue: #18251
* | | | Merge topic 'ninja-generator-do-not-add-alias-matching-custom-command-output'Brad King2018-08-272-0/+48
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 180c2f8de8 Ninja: Fix dupbuild error skipping alias with conflicting custom command Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Isaiah <isaiah.norton@gmail.com> Merge-request: !2276
| * | | | Ninja: Fix dupbuild error skipping alias with conflicting custom commandJean-Christophe Fillion-Robin2018-08-092-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See-also: https://issues.slicer.org/view.php?id=4595 Reported-by: Isaiah Norton <inorton@bwh.harvard.edu>
* | | | | Merge topic 'cuda-no-cublas_device'Brad King2018-08-241-0/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 122c79748c CUDA: Avoid using deprecated cublas_device to identify device lib dirs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2296
| * | | | | CUDA: Avoid using deprecated cublas_device to identify device lib dirsRobert Maynard2018-08-231-0/+6
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `curand_static` to identify directories containing device libraries because `cublas_device` is deprecated and will be removed in the future. Issue: #18290
* | | | | Merge topic 'export-properties-undefined'Craig Scott2018-08-182-0/+12
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dbd3e2c53d EXPORT_PROPERTIES: Prevent null dereference for undefined property b88bf6796e EXPORT_PROPERTIES: Add test for an undefined property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2294
| * | | | | EXPORT_PROPERTIES: Add test for an undefined propertyCraig Scott2018-08-162-0/+12
| |/ / / / | | | | | | | | | | | | | | | The added test verifies that a property listed in EXPORT_PROPERTIES can be undefined. It confirms the crash recorded in issue #18260.
| * | | | Merge branch 'cpack-default-package-version-zero' into release-3.12Craig Scott2018-07-297-0/+24
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !2239
| * \ \ \ \ Merge branch 'project-injected-no-cmp0048' into release-3.12Craig Scott2018-07-254-0/+16
| |\ \ \ \ \
* | | | | | | LINK_OPTIONS property: add test for static library.Marc Chevrier2018-08-155-1/+23
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check that property INTERFACE_LINK_OPTIONS is correctly propagated from static libraries. Issue: #18251
* | | | | | Merge topic 'doc-consistently-reference-packagename'Craig Scott2018-08-151-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 30d08bdce9 doc: Consistently use <PackageName> for describing the name of a package Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2283
| * | | | | | doc: Consistently use <PackageName> for describing the name of a packageJean-Christophe Fillion-Robin2018-08-141-1/+1
| | |_|_|_|/ | |/| | | |
* | | | | | Merge topic 'better_static_link_flags_docs'Craig Scott2018-08-154-0/+16
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6b17d85873 Help: Document when LINK_FLAGS and STATIC_LIBRARY_FLAGS are used 9561d42f95 target_link_options: Add test to verify static library behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !2274
| * | | | | target_link_options: Add test to verify static library behaviorRobert Maynard2018-08-094-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Issue: #18251
* | | | | | Merge topic 'test_MocOsMacros_fix'Brad King2018-08-107-20/+36
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 52676e3794 Autogen: Tests: Use non inverting Qt version tests e7fb85d00d Autogen: Check if we can run the MocOsMacros test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2270
| * | | | | Autogen: Tests: Use non inverting Qt version testsSebastian Holtermann2018-08-096-11/+11
| | | | | |
| * | | | | Autogen: Check if we can run the MocOsMacros testSebastian Holtermann2018-08-072-9/+25
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MocOsMacros test requires moc to support moc_predefs.h on some platforms (e.g. Mac). moc supports moc_predefs.h inclusion since Qt 5.8, therefore run the MocOsMacros only if Qt >= 5.8 and if CMAKE_CXX_COMPILER_PREDEFINES_COMMAND is defined. Fixes #18245
* | | | | Help: Document the $CACHE{} syntaxRobert Maynard2018-08-073-0/+11
|/ / / / | | | | | | | | | | | | Also add a test case for the behavior.
* | | | Xcode: Add variables and properties to configure schemesGregor Jasny2018-08-013-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `XCODE_SCHEME_*` target properties and associated variables `CMAKE_XCODE_SCHEME_*` to initialize them on target creation. Map each target property value to an associated Xcode scheme entry. Co-Author: Martin Sander <mail@martin-sander.de> Fixes: #17919
* | | | Autogen: Add test for Q_OS_ macrosSebastian Holtermann2018-07-305-0/+180
| | | |
* | | | Merge topic 'cpack-default-package-version-zero'Craig Scott2018-07-297-0/+24
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | ed015bde2b CPack: Restore support for 0-valued version components Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2239
| * | | CPack: Restore support for 0-valued version componentsBrad King2018-07-277-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit v3.12.0-rc1~136^2 (CPack: Use project version as default for `CPACK_PACKAGE_VERSION`, 2018-04-29) we did not account for the value of `CMAKE_PROJECT_VERSION_{MAJOR,MINOR,PATCH}` having `0`. Fix the logic to distinguish between unprovided version components and `0` components. While at it, add a test case covering the behavior described in the documentation by the original commit. The number of version components in the package name should match those provided to the `project()` command `VERSION` option. Fixes: #18199
* | | | Merge topic 'UseSWIG-target-name-policy'Brad King2018-07-2720-12/+50
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a3a0c3aa71 UseSWIG: add policy to manage target naming strategy. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2232
| * | | | UseSWIG: add policy to manage target naming strategy.Marc Chevrier2018-07-2520-12/+50
| | | | |
* | | | | Merge topic 'reproducible-tarballs'Brad King2018-07-276-2/+72
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | 548ac51d8e CPack/Deb: Support SOURCE_DATE_EPOCH when packaging files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2226
| * | | | CPack/Deb: Support SOURCE_DATE_EPOCH when packaging filesAndrew Fuller2018-07-256-2/+72
| | | | |
* | | | | Merge topic 'project-injected-no-cmp0048'Craig Scott2018-07-254-0/+16
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 6646771b0f project: Do not issue CMP0048 warnings on injected call 08eb157c03 Tests: Add case showing CMP0048 warning on injected project command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2235
| * | | | project: Do not issue CMP0048 warnings on injected callBrad King2018-07-241-12/+0
| | | | | | | | | | | | | | | | | | | | Fixes: #18202
| * | | | Tests: Add case showing CMP0048 warning on injected project commandBrad King2018-07-245-0/+28
| | |/ / | |/| | | | | | | | | | Issue: #18202
* | | | FindPkgConfig: allow to create global imported targetsRolf Eike Beer2018-07-222-1/+18
| | | |
* | | | Merge topic 'doc-find_package-root'Craig Scott2018-07-201-1/+1
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | 492ade276b Help: Add explicit <PackageName>_ROOT variable documentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2225
| * | Help: Add explicit <PackageName>_ROOT variable documentationBrad King2018-07-201-1/+1
| |/ | | | | | | | | | | Add documentation for both the CMake variable and environment variable of this name pattern. Update references to these names to link to their documents. Clarify the pattern used to construct their names.
| * Merge branch 'revert-subdirectory-linking' into release-3.12Brad King2018-07-0315-94/+7
| |\ | | | | | | | | | Merge-request: !2191
* | \ Merge topic 'remove-simpleinstall'Brad King2018-07-18102-1250/+250
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31e79050b2 Tests: Remove the SimpleInstall test 36ef57a939 Tests: Add test for cmake --build . --target package 11ca374b28 Tests: Add test for install(SCRIPT ... COMPONENT) 2201fb6f43 Tests: Add test for InstallRequiredSystemLibraries 5a7a006fdd Tests: Add test for $<0:...> in ExportImport 69ca768e78 Tests: Add test for install(TARGETS) RPATH functionality 25c3fb6c35 Tests: Add test for install(FILES) with PERMISSIONS b5df4faa20 Tests: Add test for installing parts of targets in different directories ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2209
| * | | Tests: Remove the SimpleInstall testKyle Edwards2018-07-1757-1241/+0
| | | | | | | | | | | | | | | | | | | | The cases that were covered by SimpleInstall have been moved into RunCMake.install.
| * | | Tests: Add test for cmake --build . --target packageKyle Edwards2018-07-173-8/+25
| | | |
| * | | Tests: Add test for install(SCRIPT ... COMPONENT)Kyle Edwards2018-07-175-0/+9
| | | |
| * | | Tests: Add test for InstallRequiredSystemLibrariesKyle Edwards2018-07-173-0/+12
| | | |
| * | | Tests: Add test for $<0:...> in ExportImportKyle Edwards2018-07-171-3/+3
| | | | | | | | | | | | | | | | | | | | This test case already includes test cases for $<1...> and $<0...>, but this commit adds a few $<0:...>'s in cases where it was missing.