summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* file: Add READ_SYMLINK sub-commandKyle Edwards2018-12-068-0/+33
|
* Merge topic 'try-compile'Brad King2018-12-069-1/+121
|\ | | | | | | | | | | | | | | f266182aec Check* functions family: add support for LINK_OPTIONS 29f9db5c63 try_compile/try_run: Add support for LINK_OPTIONS option. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2661
| * try_compile/try_run: Add support for LINK_OPTIONS option.Marc Chevrier2018-12-019-1/+121
| |
* | Merge topic 'arch-independent-version-file-creation'Brad King2018-12-062-0/+64
|\ \ | | | | | | | | | | | | | | | | | | | | | eb973f935f CMakePackageConfigHelpers: Add ARCH_INDEPENDENT option Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Silvio Traversaro <pegua1@gmail.com> Merge-request: !2666
| * | CMakePackageConfigHelpers: Add ARCH_INDEPENDENT optionJustin Bassett2018-12-012-0/+64
| | | | | | | | | | | | | | | | | | | | | Allow skipping the architecture check in the package version file generated from calling write_basic_package_version_file. Document said architecture check. Fixes: #16184
* | | Merge topic 'autogen_uic_empty_fix'Brad King2018-12-0650-46/+153
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f0f84c7e0 Autogen: Don't add a WIN32 moc definition if we have a moc_predefs.h file 0814d74548 Autogen: Add QtAutogen.UicNoGui test 2ef640819f Autogen: Tests: Differentiate between Qt core and Qt gui tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2668
| * | | Autogen: Add QtAutogen.UicNoGui testSebastian Holtermann2018-11-287-0/+50
| | | | | | | | | | | | | | | | | | | | Adds a Qt core only test that has ``AUTOUIC`` enabled targets that don't link against QtXWidgets or Qt at all.
| * | | Autogen: Tests: Differentiate between Qt core and Qt gui testsSebastian Holtermann2018-11-2843-46/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some AUTOGEN tests require the Qt core libraries only and some require the Qt gui libraries to function. This replaces the AutogenTest.cmake script with two specific AutogenCoreTest.cmake and AutogenGuiTest.cmake scripts that are included on demand.
* | | | Merge topic 'cmcmd_touch_err'Brad King2018-12-063-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 100366a267 cmake: add error message when '-E touch' fails Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2671
| * | | | cmake: add error message when '-E touch' failsIsaiah Norton2018-11-273-0/+4
| |/ / / | | | | | | | | | | | | Issue: #16526
* | | | Merge topic 'cuda-external'Brad King2018-12-063-0/+10
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 7b74213461 CUDA: Fix crash on linking to a CUDA target without CUDA enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2704
| * | | CUDA: Fix crash on linking to a CUDA target without CUDA enabledBrad King2018-12-053-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not try to device link or add CUDA runtime libraries if the language is not enabled. Fixes: #18673 Issue: #18614
| * | | Merge branch 'FindBoost-no-cxx' into release-3.13Brad King2018-11-263-0/+3
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !2663
* | \ \ \ Merge topic 'readability-static-accessed-through-instance'Brad King2018-11-281-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3e60580784 clang-tidy: Fix readability-static-accessed-through-instance Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2647
| * | | | | clang-tidy: Fix readability-static-accessed-through-instanceRegina Pfeifer2018-11-211-3/+3
| | |_|_|/ | |/| | | | | | | | | | | | | Enable the check in .clang-tidy and fix all warnings.
* | | | | Merge topic 'file-size'Brad King2018-11-285-0/+20
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | 12b471e828 file: add SIZE option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2639
| * | | | file: add SIZE optionWouter Klouwen2018-11-275-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the SIZE option to file(). It returns the file size of the given path if it exists and produces an error if not.
* | | | | Merge topic 'ctest-updates'Brad King2018-11-2755-57/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d9195ab081 Tests: Teach run_ctest to handle removal of CTestConfig.cmake 1ca53f5ef1 Remove unnecessary CTEST_PROJECT_NAME variables 15ac4aae0e Remove warning when no CTestConfig.cmake file exists 3125c47d27 ctest_build: Do not require unnecessary [CTEST_]PROJECT_NAME value 36bbd07a76 CDashUpload: Use the query part of the submit url as field e1dfe8cee6 CTest: Don't require 'submit.php?' in submit location Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2640
| * | | | | Tests: Teach run_ctest to handle removal of CTestConfig.cmakeBrad King2018-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running tests in a non-fresh build tree there may be files left from previous test runs. In the case that a test removes `CTestConfig.cmake.in`, we must remove any `CTestConfig.cmake` that may have been left behind.
| * | | | | Remove unnecessary CTEST_PROJECT_NAME variablesRegina Pfeifer2018-11-2055-57/+4
| | | | | |
* | | | | | Merge topic 'FindBoost-no-cxx'Brad King2018-11-273-0/+3
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | 0369362132 FindBoost: Restore finding without CXX language enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2663
| * | | | FindBoost: Restore finding without CXX language enabledBrad King2018-11-263-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.13.0~7^2 (FindBoost: Improve compiler prefix detection for GCC 5+ and clang 4+, 2018-11-07) we run the internal `_Boost_COMPILER_DUMPVERSION` macro on all UNIX platforms. Teach the macro to tolerate missing `CMAKE_CXX_COMPILER_VERSION`, which occurs when the CXX language is not enabled. Fixes: #18624
* | | | | Merge topic 'FindGIF-modernize'Brad King2018-11-214-0/+65
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 74cc42e937 Help: Add notes for topic 'FindGIF-modernize' 6962a41e6b FindGIF: Add test 5bc64fe6c2 FindGIF: Modernize Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2632
| * | | | | FindGIF: Add testMaximilian Heinzler2018-11-204-0/+65
| | |/ / / | |/| | | | | | | | | | | | | | | | | | This tests whether GIFLIB can be found and the linker works. For newer versions (>=5) it also tests if the version was parsed correctly.
* | | | | Merge topic 'find-boost-test-version'Brad King2018-11-212-1/+19
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 19d92d5e6e FindBoost: provide the version in x.y.z format 186f69cf26 FindBoost: test version variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2638
| * | | | | FindBoost: provide the version in x.y.z formatBen Boeckel2018-11-201-1/+1
| | | | | |
| * | | | | FindBoost: test version variablesBen Boeckel2018-11-202-1/+19
| | |_|/ / | |/| | |
* | | | | Merge topic 'fortran-submodule-case'Brad King2018-11-211-3/+3
|\ \ \ \ \ | |_|/ / / |/| | | / | | |_|/ | |/| | | | | | | | | | ead16adfc8 Fortran: Fix module dependency scanning with upper-case SUBMODULE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2644
| * | | Fortran: Fix module dependency scanning with upper-case SUBMODULEBrad King2018-11-201-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | The lexical token expression added by commit v3.7.0-rc1~73^2~1 (Fortran: Add support for submodule syntax in dependency scanning, 2016-09-05) has a typo and does not match upper-case `B` in `SUBMODULE`. Fix it. Fixes: #18595
| * | Merge branch 'backport-configure_file-canonical-deps' into release-3.13Brad King2018-11-194-1/+14
| |\ \ | | | | | | | | | | | | Merge-request: !2635
| | * | configure_file: canonicalize input and output path in dependenciesFrank Benkstein2018-11-194-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Represent the input file path internally in canonical form. Otherwise multiple `configure_file` calls that share the same input file but specify it relative to different directories (e.g. via `../`) result in multiple copies of the dependency on the rule to re-run CMake. This causes the Ninja generator to emit duplicate phony build statements for these dependencies, which generates an error with `-w dupbuild=err`, which will be default in Ninja 1.9. Also canonicalize the output path for consistency. Add a test case. Fixes: #18584
* | | | Genex: Add policy to handle empty list items in $<IN_LIST:...>Kyle Edwards2018-11-198-0/+73
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | The old behavior of $<IN_LIST:...> is inconsistent with that of if(IN_LIST), in that it does not find an empty search item even if the list contains empty items. This change adds a new policy to correctly handle empty items and make the behavior more consistent with if(IN_LIST). Fixes: #18556
* | | Merge topic 'findx11-imported-targets'Brad King2018-11-194-0/+508
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bced9d5e56 Tests/FindX11: add a test a7d2ffb232 FindX11: add imported targets 40b3dba529 FindX11: require Freetype and Fontconfig for Xft cc96249e2e FindX11: remove local variable from the advanced list 99489d9f10 FindX11: find Xext.h b8b598061a FindX11: match variables with library names 6079a0d00f FindX11: fix some formatting in the documentation 3c54955d0d FindX11: use `list(APPEND)` for clearer code ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2604
| * | | Tests/FindX11: add a testBen Boeckel2018-11-154-0/+508
| | | |
* | | | Merge topic 'ctest-stdin'Brad King2018-11-196-1/+43
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | 86e8315482 CTest: Restore inheritance of stdin by test processes bdec3bd896 Tests: Teach RunCMake infrastructure to optionally provide stdin Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2618
| * | | CTest: Restore inheritance of stdin by test processesBrad King2018-11-155-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.11.0-rc1~117^2 (CTest: Re-implement test process handling using libuv, 2017-12-10) we do not give the child test processes any stdin. Prior to that change we let the child test processes inherit stdin from ctest itself. Tests that run serially might be able to use the real stdin meaningfully, so restore that behavior and add a test case. Fixes: #18591
| * | | Tests: Teach RunCMake infrastructure to optionally provide stdinBrad King2018-11-151-0/+9
| | |/ | |/|
| * | Merge branch 'rename-cpack-ext-generator' into release-3.13Brad King2018-11-0617-38/+38
| |\ \ | | | | | | | | | | | | Merge-request: !2566
| * \ \ Merge branch 'custom-command-work-dir-genex' into release-3.13Brad King2018-11-051-2/+2
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !2559
| * \ \ \ Merge branch 'fix-custom-target-with-csharp' into release-3.13Brad King2018-10-314-2/+15
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !2549
| * \ \ \ \ Merge branch 'set_directory_properties-script-mode' into release-3.13Brad King2018-10-293-0/+5
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !2544
* | \ \ \ \ \ Merge topic 'test-WriteBasicConfigVersionFile'Brad King2018-11-155-906/+891
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f3a381115f Tests: Simplify RunCMake.WriteBasicConfigVersionFile 0dbcc1afbf Tests: Factor out RunCMake.WriteBasicConfigVersionFile test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2612
| * | | | | | | Tests: Simplify RunCMake.WriteBasicConfigVersionFileBrad King2018-11-142-29/+8
| | | | | | | |
| * | | | | | | Tests: Factor out RunCMake.WriteBasicConfigVersionFile testBrad King2018-11-146-906/+912
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `WriteBasicConfigVersionFile` section of the `FindPackageTest` is independent of the rest.
* | | | | | | | Merge topic 'configure_file-canonical-deps'Brad King2018-11-154-1/+14
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6199637e95 configure_file: canonicalize input and output path in dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2586
| * | | | | | | | configure_file: canonicalize input and output path in dependenciesFrank Benkstein2018-11-134-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Represent the input file path internally in canonical form. Otherwise multiple `configure_file` calls that share the same input file but specify it relative to different directories (e.g. via `../`) result in multiple copies of the dependency on the rule to re-run CMake. This causes the Ninja generator to emit duplicate phony build statements for these dependencies, which generates an error with `-w dupbuild=err`, which will be default in Ninja 1.9. Also canonicalize the output path for consistency. Add a test case. Fixes: #18584
* | | | | | | | | Merge topic 'deprecate-findqt'Brad King2018-11-156-0/+51
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f5c1b404b find_package(): Add policy to remove the FindQt module Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: noo mook <noomook2519@gmail.com> Merge-request: !2554
| * | | | | | | | | find_package(): Add policy to remove the FindQt moduleKyle Edwards2018-11-146-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing FindQt.cmake gives Qt upstream a path forward to export its own QtConfig.cmake files which can be found by find_package() without having to explicitly specify CONFIG. Projects that still want to use Qt3/4 can call find_package(Qt[34]), include(FindQt), or add FindQt.cmake to their CMAKE_MODULE_PATH.
* | | | | | | | | | Merge topic 'autogen_info_write'Brad King2018-11-155-39/+39
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e0c26406aa Autogen: Sort tests 83bbfb1d53 Autogen: Add a definitions test to the MocOnly test 01d5e5c460 Autogen: Add and use cmQtAutoGenInitializer::InfoWriter class Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2610
| * | | | | | | | | | Autogen: Sort testsSebastian Holtermann2018-11-143-38/+32
| | | | | | | | | | |