summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'check_fixtures_before_exe_existence'Craig Scott2017-11-291-1/+5
|\ | | | | | | | | | | | | | | fbe91dba CTest: Check failed fixture dependencies before test command and args Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !1526
| * CTest: Check failed fixture dependencies before test command and argsCraig Scott2017-11-281-1/+5
| |
* | Merge topic 'CheckIncludeFiles-language-CXX'Brad King2017-11-2912-0/+54
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b31d5e1d CheckIncludeFiles: improve warning for missing argument 1f1c2a9f CheckIncludeFiles: clean up documentation of new features c8609992 Help: Add notes for topic 'CheckIncludeFiles-language-CXX' ea1bb902 CheckIncludeFiles: add unit tests 7669695a CheckIncludeFiles: extend to allow a LANGUAGE argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1464
| * | CheckIncludeFiles: improve warning for missing argumentDavid Adam2017-11-241-2/+2
| | |
| * | CheckIncludeFiles: add unit testsDavid Adam2017-11-1112-0/+54
| | |
* | | Merge topic 'fortran-compiler-launcher'Brad King2017-11-297-0/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | f19c70c3 Fortran: Add option to run the compiler through launcher tools Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1517
| * | | Fortran: Add option to run the compiler through launcher toolsBrad King2017-11-217-0/+17
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Add a `Fortran_COMPILER_LAUNCHER` target property like those added for C and CXX by commit v3.4.0-rc1~450^2 (Add options to launch the compiler through tools like ccache or distcc, 2015-06-04) and CUDA by commit v3.10.0-rc1~531^2 (CUDA: Add option to run the compiler through launcher tools, 2017-06-09). Fixes: #17499
* | | Merge topic 'extend-compile-language-genex'Brad King2017-11-2716-46/+16
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2ae880fa Genex: Enable COMPILE_LANGUAGE for COMPILE_OPTIONS with Visual Studio 2b7d59f3 Genex: Enable COMPILE_LANGUAGE for file(GENERATE) with Visual Studio 0f6f7c8a Genex: Fix COMPILE_LANGUAGE messages to allow file(GENERATE) with Xcode c5a82d0f Tests: Decouple COMPILE_LANGUAGE in file(GENERATE) from COMPILE_OPTIONS 25773650 Tests: Remove unnecessary result files from RunCMake.File_Generate Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jason Juang <jasjuang@gmail.com> Merge-request: !1511
| * | Genex: Enable COMPILE_LANGUAGE for COMPILE_OPTIONS with Visual StudioBrad King2017-11-206-23/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.9.0-rc4~3^2~1 (VS: Fix target_compile_options for CUDA, 2017-06-21), the evaluation of `COMPILE_LANGUAGE` receives the proper language. The set of compile flags used for a target's C and C++ sources is based on the linker language. By default this is always the C++ flags if any C++ sources appear in the target, and otherwise the C flags. Therefore we can define the `COMPILE_LANGUAGE` generator expression in `COMPILE_OPTIONS` to match the selected language. This is not exactly the same as for other generators, but is the best VS can do. It is also sufficient for many use cases since the set of allowed flags for C and C++ is almost the same in Visual Studio. Furthermore, since the VS generator moves many of the flags to declarative `.vcxproj` elements, it will automatically avoid passing C++ flags for C sources. Issue: #17435
| * | Genex: Enable COMPILE_LANGUAGE for file(GENERATE) with Visual StudioBrad King2017-11-174-12/+13
| | | | | | | | | | | | Issue: #17435
| * | Genex: Fix COMPILE_LANGUAGE messages to allow file(GENERATE) with XcodeBrad King2017-11-172-4/+4
| | | | | | | | | | | | | | | | | | | | | When rejecting the `COMPILE_LANGUAGE` generator expression on include directories and compile definitions with Xcode, add `file(GENERATE)` to the allowed set in the message. It is allowed and already covered by the `RunCMake.File_Generate` test `COMPILE_LANGUAGE-genex` case.
| * | Tests: Decouple COMPILE_LANGUAGE in file(GENERATE) from COMPILE_OPTIONSBrad King2017-11-171-7/+1
| | | | | | | | | | | | | | | Simplify the `RunCMake.File_Generate` test `COMPILE_LANGUAGE-genex` case to avoid requiring support for the genex in `COMPILE_OPTIONS`.
| * | Tests: Remove unnecessary result files from RunCMake.File_GenerateBrad King2017-11-176-6/+0
| | | | | | | | | | | | The default result is "0" anyway.
* | | Merge topic 'gtest-fix-discovery'Brad King2017-11-214-3/+42
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 70f9f62d GoogleTest: Fix multiple discovery on same target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1510
| * | | GoogleTest: Fix multiple discovery on same targetMatthew Woehlke2017-11-214-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the documentation, tests can be discovered for a target multiple times by using a different prefix and/or suffix to ensure name uniqueness. However, while this worked for gtest_add_tests, it did not work with gtest_discover_tests because the generated file that sets up the tests was named based only on the target name, and so subsequent discovery from the same target would clobber earlier discovery. Fix this by introducing a counter that records how many times discovery has been used on a target, and use this to generate unique names of the generated test list files.
| * | | Merge branch 'cpack-rpm-dist-test-fix' into release-3.10Brad King2017-10-301-0/+5
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !1424
| * \ \ \ Merge branch 'backport-fix-co-compile' into release-3.10Brad King2017-10-2714-5/+100
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !1418
| * \ \ \ \ Merge branch 'cmp0040-wording' into release-3.10Brad King2017-10-261-3/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !1415
* | \ \ \ \ \ Merge topic 'cpack-minor-cleanup-and-tests-extension'Brad King2017-11-2031-66/+150
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 325f34d1 CPack tests: add possibility for expecting config developer warnings 176281e1 CPack test: correctly handle CPACK_PACKAGING_INSTALL_PREFIX cf0c2599 CPack: set variable commands in lower case 2ff906b3 CPack: documentation typo fix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1499
| * | | | | | | CPack tests: add possibility for expecting config developer warningsDomen Vrankar2017-11-192-1/+28
| | | | | | | |
| * | | | | | | CPack test: correctly handle CPACK_PACKAGING_INSTALL_PREFIXDomen Vrankar2017-11-1930-65/+122
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every CPack generator sets default CPACK_PACKAGING_INSTALL_PREFIX variable value differently so test framework should support that correctly - previous version expected RPM/Deb /usr default and removed it for Archive packagers as the default there is /.
* | | | | | | Merge topic 'FindOpenGL-glvnd-policy'Brad King2017-11-2011-0/+57
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2ea17412 FindOpenGL: Add policy CMP0072 to prefer GLVND for legacy GL Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Clinton Stimpson <clinton@elemtech.com> Merge-request: !1491
| * | | | | | FindOpenGL: Add policy CMP0072 to prefer GLVND for legacy GLBrad King2017-11-1711-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #17449
* | | | | | | Tests: Add test for bad foreach inside a functionBrad King2017-11-166-0/+18
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add test for a case fixed by commit 6a4a61d9e1 (cmForEachCommand: prevent leakage, 2017-10-09). Prior to that fix, this test case could trigger an assertion failure. Fixes: #17464
* | | | | | Merge topic 'update-ctest-documentation'Brad King2017-11-101-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b272ff8 Help: Add 'Label and Subproject Summary' section to ctest(1) manual 002d0a1c Help: Normalize capitalization of 'CTest' in ctest(1) manual 9d3aa95c Help: Divide ctest(1) manual options into sections 7904b659 Tests: Remove incorrect use of 'test-timeout' option e80dc2ad cmCTest: Remove dead code Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1427
| * | | | | | Tests: Remove incorrect use of 'test-timeout' optionBetsy McPhail2017-11-101-1/+1
| | |_|_|_|/ | |/| | | |
* | | | | | CPack: enable setting default dir creation permissionsDomen Vrankar2017-11-086-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces CPACK_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable which adds support for functionality introduced by CMAKE_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable. Fixes #17333 # Conflicts: # Help/release/dev/cmake-default-dir-install-permissions.rst
* | | | | | CPack test: expand output checking fallbackDomen Vrankar2017-11-082-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some tests can have the same output for a certain subtest no matter which packaging generator is used.
* | | | | | Merge topic 'imported-promotion'Brad King2017-11-089-1/+155
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a3922be Add new target-property `IMPORTED_GLOBAL`. 854e482a cmTarget: Simplified and fixed a string-comparision. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1254
| * | | | | Add new target-property `IMPORTED_GLOBAL`.Deniz Bahadir2017-11-079-1/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of this new `IMPORTED_GLOBAL` target-property is to prolong the lifetime and scope of `IMPORTED` targets in such a way as if they had been created with the keyword `GLOBAL` in the first place. * It can only be set to `TRUE`. That means, a local `IMPORTED` target can be promoted to global scope but a global `IMPORTED` target cannot be degraded to local scope! * Setting it to `TRUE` only succeeds if done from within the same directory in which the `IMPORTED` target was created in the first place. Fixes #17256.
* | | | | | Fix trivial typos in textluzpaz2017-11-032-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some are user facing. Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces
* | | | | | Add deprecation warnings for policies CMP0054 and belowBrad King2017-11-0145-23/+400
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for some policies to encourage projects to port away from setting policies to OLD.
* | | | | Merge topic '16780-write-single-xcodeproj'Brad King2017-11-014-0/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4e9ce7c Xcode: Add option to generate only topmost project file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1395
| * | | | | Xcode: Add option to generate only topmost project fileGregor Jasny2017-10-314-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Closes #16780
* | | | | | Merge topic 'cmp0037-conditional-targets'Brad King2017-10-3133-8/+173
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ae5f4069 CMP0037: Allow test and package targets when features are not enabled 409527a0 CMP0037: De-duplicate check and message generation a2611d81 Tests: Add RunCMake.CMP0037 case for WARN on reserved targets 103501c4 Tests: Do not enable languages in all cases of RunCMake.CMP0037 2d0b3e6e cmGlobalGenerator: Refactor test and package target conditions Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !1417
| * | | | | CMP0037: Allow test and package targets when features are not enabledBrad King2017-10-3023-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When CMake will not generate a test, package, or package_source target, allow projects to create their own targets with these names. Fixes: #16062
| * | | | | Tests: Add RunCMake.CMP0037 case for WARN on reserved targetsBrad King2017-10-263-0/+41
| | | | | |
| * | | | | Tests: Do not enable languages in all cases of RunCMake.CMP0037Brad King2017-10-268-8/+8
| | | | | |
* | | | | | Merge topic 'cpack-deb-0-so-version-support'Brad King2017-10-303-3/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5784ab8f CPack/Deb: handle shlibs file generation when SOVERSION set to 0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1423
| * | | | | | CPack/Deb: handle shlibs file generation when SOVERSION set to 0Domen Vrankar2017-10-283-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS did not auto generate shlibs control file when .so version of the library was set to 0. Fixes #17318
* | | | | | | Merge topic 'cpack-rpm-dist-test-fix'Brad King2017-10-301-0/+5
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ce00cae CPack/RPM: DIST-MONOLITHIC-type subtest fix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1424
| * | | | | | CPack/RPM: DIST-MONOLITHIC-type subtest fixDomen Vrankar2017-10-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test was failing in case dist macro contained a + symbol which is valid but must be escaped for using the string as a regex. Fixes #17328
* | | | | | | Merge topic 'fix-co-compile'Brad King2017-10-3014-5/+100
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 197b4e18 Merge branch 'backport-fix-co-compile' into fix-co-compile 992962c7 cmcmd: Restore support for running multiple lint tools a5197eea cmcmd: Convert lint handlers to file-static functions 1c075ffd cmcmd: Rename loop iteration variable for clarity Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1418
| * | | | | | Merge branch 'backport-fix-co-compile' into fix-co-compileBrad King2017-10-2714-5/+100
| |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | / | | | |_|_|/ | | |/| | | Resolve a logical conflict by replacing `cmArray{Begin,End}` from the their side with `cm::{cbegin,cend}` from our side.
| | * | | | cmcmd: Restore support for running multiple lint toolsBrad King2017-10-2714-5/+100
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit v3.10.0-rc1~115^2 (Clean up iwyu code to not be one big if statement, 2017-08-28) incorrectly changed the logic to run only one lint tool at a time. Restore support for running all tools specified on the command-line.
| | * | | Merge branch 'cpack-deb-mr-1296-fix' into release-3.10Brad King2017-10-114-0/+21
| | |\ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !1375
* | | \ \ \ Merge topic 'generalize-importedtargets-behavior'Brad King2017-10-2716-26/+132
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb88d2b5 Help: Add notes for topic 'generalize-importedtargets-behavior' 494906a8 Add support for IMPORTED GLOBAL targets to be aliased fe4b25ec Teach target_* commands to set INTERFACE properties of IMPORTED targets e40fd9fd cmTargetPropCommandBase: Fix typo in error message Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Henry Schreiner <henryschreineriii@gmail.com> Merge-request: !1264
| * | | | | | Add support for IMPORTED GLOBAL targets to be aliasedDeniz Bahadir2017-10-265-6/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: #15569 Issue: #17197
| * | | | | | Teach target_* commands to set INTERFACE properties of IMPORTED targetsDeniz Bahadir2017-10-269-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, several `INTERFACE_*` properties can be set on `IMPORTED` targets, not only via `set_property` and `set_target_properties` but also via `target_compile_definitions`, `target_compile_features`, `target_compile_options`, `target_include_directories`, `target_sources` and `target_link_libraries`. Fixes: #15689 Issue: #17197
| * | | | | | cmTargetPropCommandBase: Fix typo in error messageDeniz Bahadir2017-10-262-9/+9
| |/ / / / /