summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'better-empty-list-behavior'Brad King2018-10-1721-26/+38
|\ | | | | | | | | | | | | | | | | 121a036f73 cmListCommand: handle empty lists for list(REMOVE_AT) acfe53c588 cmListCommand: make list(ACTION not_a_list) succeed when idempotent bf572ac952 cmListCommand: check list(FILTER) operation before the list Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2478
| * cmListCommand: handle empty lists for list(REMOVE_AT)Ben Boeckel2018-10-167-2/+19
| | | | | | | | | | Treat an empty list as a list with no valid bounds and return an error message indicating that any given indices are out-of-bounds.
| * cmListCommand: make list(ACTION not_a_list) succeed when idempotentBen Boeckel2018-10-1615-25/+20
| | | | | | | | | | | | | | | | | | | | | | The operations changed here all are no-ops on empty lists anyways, so just have them succeed when given non-extant lists. - `list(REMOVE_ITEM)` - `list(REMOVE_DUPLICATES)` - `list(SORT)` - `list(FILTER)` - `list(REVERSE)`
* | Merge topic 'ctest-coverage-gtm-percent'Brad King2018-10-174-32/+41
|\ \ | | | | | | | | | | | | | | | | | | f7d92deff4 CTest: Fix GTM coverage handling of entry point named "%" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2489
| * | CTest: Fix GTM coverage handling of entry point named "%"Joseph Snyder2018-10-164-32/+41
| | | | | | | | | | | | | | | | | | | | | Removing the "%" character from the name of the routine in the line parser causes CTest to be unable to find a routine entry point that is only named "%". Instead leave it during line parsing and handle routine names ending in "%" explicitly when loading files.
* | | Merge topic 'document-dollar-in-varnames'Brad King2018-10-166-0/+41
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 82a4822610 CMP0053: document that `$` is a valid literal variable character Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2479
| * | CMP0053: document that `$` is a valid literal variable characterBen Boeckel2018-10-156-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | This was overlooked in the initial implementation of CMP0053. However, an additional policy to reject it again is not worth it. Instead, add tests and document the behavior. Fixes: #17883
* | | Merge topic 'cppcheck-exit-code'Brad King2018-10-126-9/+18
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 3b80cd77fb Fail the build if cppcheck returns a non-zero exit code Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2459
| * | | Fail the build if cppcheck returns a non-zero exit codeHarald Brinkmann2018-10-116-9/+18
| | | | | | | | | | | | | | | | | | | | This allows the build failure to be tuned with cppcheck's options --error-exitcode=<n> and --exitcode-suppressions=<file>.
* | | | Merge topic 'find_libinput'Brad King2018-10-124-0/+41
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f76047f34a FindLibinput: Add module to find libinput Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2420
| * | | | FindLibinput: Add module to find libinputFrederik Gladhorn2018-10-114-0/+41
| | |_|/ | |/| | | | | | | | | | This module is inspired by one from KDE's KWin.
* | | | Merge branch 'backport-revert-install-code-script-genex' into ↵Brad King2018-10-116-19/+0
|\ \ \ \ | |/ / / |/| | | | | | | revert-install-code-script-genex
| * | | install: Revert CODE,SCRIPT support for generator expressionsBrad King2018-10-116-19/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit v3.13.0-rc1~441^2 (install: Teach CODE,SCRIPT modes to evaluate generator expressions, 2018-05-29). Unfortunately it has been found to break existing code in a real project, e.g. install(CODE [[ message("$<FOOBAR>") ]]) Address this regression by reverting support for the 3.13 release series. Support can be restored later with a policy for compatibility. Issue: #15785 Fixes: #18435
* | | Merge topic 'vs-cuda-pdb'Brad King2018-10-1114-14/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | faf3d7d224 VS: Add workaround for CUDA compiler PDB location with space 592064e026 VS: Drop workaround for CUDA compiler PDB location on CUDA 9.2+ fb378fc4d7 Tests: Fix Cuda test project names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2473
| * | | Tests: Fix Cuda test project namesBrad King2018-10-1014-14/+14
| |/ / | | | | | | | | | | | | Make them match what `ADD_TEST_MACRO` gives to ctest as the project name to build so that the `.sln` file will be found.
* | | Merge topic 'cmake_policy-get_warning'Brad King2018-10-112-10/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d988f98e5 cmake_policy: Add undocumented GET_WARNING command f9f96598df Help: Convert FindOpenGL documentation to block comment Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2472
| * | | cmake_policy: Add undocumented GET_WARNING commandKyle Edwards2018-10-102-10/+16
| | |/ | |/| | | | | | | | | | | | | | | | This command is intended for modules that issue policy warnings so they can get the warning string from CMake in a uniform manner, rather than duplicating the string. Several modules been updated to include an example of the usage of this new command.
* | | Merge topic 'install-subdirectory-order'Brad King2018-10-11131-145/+262
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b56f2db87a Testing: Add test for CMP0082 fc8955e889 add_subdirectory: Run subdirectory install rules in correct order 514f0b572e Testing: Update hard-coded line numbers to [0-9]+ in some tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2434
| * | | Testing: Add test for CMP0082Kyle Edwards2018-10-1035-2/+119
| | | |
| * | | Testing: Update hard-coded line numbers to [0-9]+ in some testsKyle Edwards2018-10-1096-143/+143
| |/ /
* | | Merge topic 'ctest-done'Brad King2018-10-113-0/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | a6e0158712 ctest_submit: Add support for a "Done" part f460bbd4c8 ctest_submit: Refactor file list to use a vector instead of a set Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Merge-request: !2405
| * | ctest_submit: Add support for a "Done" partBetsy McPhail2018-10-103-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach CTest to submit Done.xml. Submission of this file indicates to CDash that a build is complete and no more files will be uploaded. It contains the build id returned by CDash and the current time. This file is submitted last for a given build when using the `ctest_submit()` command. If submitting by PARTS, use `ctest_submit(PARTS Done)`.
* | | Merge topic 'project-always-set-desc-url'Brad King2018-10-082-0/+27
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | f8a086a86b project(): Ensure DESCRIPTION and HOMEPAGE_URL variables are set b27247c8df project(): Add tests verifying variables set by second project() call Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2457
| * | project(): Add tests verifying variables set by second project() callCraig Scott2018-10-072-0/+27
| |/
* | Merge topic 'pkgc-op-lt-gt'Brad King2018-10-042-0/+84
|\ \ | | | | | | | | | | | | | | | | | | aa51bfd74f FindPkgConfig: support also > and < operators for version compares Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2435
| * | FindPkgConfig: support also > and < operators for version comparesRolf Eike Beer2018-10-042-0/+84
| |/ | | | | | | Fixes: #18416
* | Fix misc. typosluz.paz2018-10-032-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via `codespell -q 3 -I ../cmake-whitelist.txt --skip="./Utilities"` where the whitelist consists of ``` aci ans behaviour buil convertor dum earch ect emmited emmitted helpfull iff isnt ith lowercased mose nd nknown nto objext ot pathes pevents splitted substract superceded supercedes te tim todays uint upto whitespaces ```
* Merge topic 'fix-csharp-target-type'Brad King2018-10-032-0/+9
|\ | | | | | | | | | | | | | | 375b420fdf CSharp: Fix regression in VS project type selection 8b21aa0af0 VS: Fix CSharp flag selection when linking to a static C++ library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2427
| * CSharp: Fix regression in VS project type selectionBrad King2018-10-022-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A that target contains only `.cs` sources should be generated as a `.csproj` project even if it links to non-CSharp static libraries. The latter case was broken by refactoring in commit v3.12.0-rc1~160^2~7 (remove TargetIsCSharpOnly() and use methods from cmGeneratorTarget, 2018-03-19). The reason is that the `HasLanguage` method added by commit v3.12.0-rc1~239^2~6 (cmGeneratorTarget: add HasLanguage() as wrapper for GetLanguages(), 2018-03-19) enforces its "exclusive" check on the combined set of source file languages and the link language. To restore the original `TargetIsCSharpOnly` semantics, update `HasLanguage` to enforce exclusiveness only on the list of sources. Fixes: #18239
* | Merge topic 'no_buildid_for_files'Brad King2018-10-014-0/+4
|\ \ | | | | | | | | | | | | | | | | | | c49d13f94b ctest: only create buildid when submitting from Testing/ dir Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2423
| * | ctest: only create buildid when submitting from Testing/ dirZack Galbreath2018-09-284-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 7f530cc we taught CTest to pass extra information to CDash at submit time. This extra info is used by CDash to initialize a buildid. `ctest_submit(FILES)` can be used to send specific files to CDash. These files are not necessarily associated with the build currently being performed. For this reason, we modify the behavior of ctest_submit() to only specify this extra info when we are submitting files from the current build's Testing directory.
* | | Ninja,Makefile: Add tests for handling of byproducts by clean operationsPedro Navarro2018-09-286-0/+173
| | |
* | | Tests: Update CustomCommandWorkingDirectory to handle in-source byproductsPedro Navarro2018-09-281-4/+4
| | | | | | | | | | | | | | | | | | | | | When running an in-source build the CustomCommandWorkingDirectory test created a copy of a source file in the same directory it was running on. This breaks when byproducts are cleaned (e.g. via Ninja) because it deletes one of the source files.
* | | Merge topic 'customcommandworkingdirectory'Brad King2018-09-281-0/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | f158ac19e1 add_custom_{command,target}: WORKING_DIRECTORY generator expressions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2409
| * | | add_custom_{command,target}: WORKING_DIRECTORY generator expressionsJon Chronopoulos2018-09-281-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This teaches add_custom_command and add_custom_target WORKING_DIRECTORY about generator expressions Fixes: #14089
* | | | Merge topic 'vs-global-props-for-all-targets'Brad King2018-09-283-0/+53
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 36489b85aa VS: Add test for CMAKE_VS_GLOBALS 22e670a306 VS: Add option to set VS_GLOBAL_* for all targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2345
| * | | | VS: Add test for CMAKE_VS_GLOBALSMikhail Korolev2018-09-283-0/+53
| | | | |
* | | | | Merge topic 'addvs2017arm64'Brad King2018-09-281-17/+19
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 22282d6931 Tests: Add VSWinStore* test for VS 2017 ARM64 57b9a072cb Tests: Teach VSWinStore* tests to pass the architecture as a parameter Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2389
| * | | | Tests: Add VSWinStore* test for VS 2017 ARM64Gilles Khouzam2018-09-261-0/+1
| | | | |
| * | | | Tests: Teach VSWinStore* tests to pass the architecture as a parameterGilles Khouzam2018-09-261-17/+18
| |/ / / | | | | | | | | | | | | | | | | Instead of specifying the architecture in the generator name, pass it as the generator platform. This has been preferred since CMake 3.1.
* | | | Merge topic 'link-directories'Craig Scott2018-09-2626-0/+171
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f9717725f9 link_directories(): enhance capabilities b5915744eb LINK_DIRECTORIES target property: add policy for absolute paths check. a71caab46b LINK_DIRECTORIES: Add new properties and commands 5ca130e223 Refactoring: introduce function to check if a string is a generator expression Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2403
| * | | | link_directories(): enhance capabilitiesMarc Chevrier2018-09-253-1/+36
| | | | |
| * | | | LINK_DIRECTORIES target property: add policy for absolute paths check.Marc Chevrier2018-09-2514-0/+49
| | | | |
| * | | | LINK_DIRECTORIES: Add new properties and commandsMarc Chevrier2018-09-2510-0/+87
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These new capabilities enable to manage link directories Two new properties: * target properties: LINK_DIRECTORIES and INTERFACE_LINK_DIRECTORIES One new command * target_link_directories(): to populate target properties Fixes: #17215
* | | | Merge topic 'dbgsym-packaging'Brad King2018-09-265-11/+38
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | d8a3939aef CPack/Deb: Add ability to split out debug symbols into .ddeb package 42fbff45e4 CPack/Deb: Use CMAKE_COMMAND to set the environment 66ab24a4c5 Help: Fix typo Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2399
| * | | CPack/Deb: Add ability to split out debug symbols into .ddeb packageAndrew Fuller2018-09-215-11/+38
| | | |
* | | | Merge topic 'deprecate-policy-old'Craig Scott2018-09-2010-3/+106
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c709cb2a2 Add deprecation warnings for policies CMP0063 and below Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2397
| * | | | Add deprecation warnings for policies CMP0063 and belowBrad King2018-09-1710-3/+106
| |/ / / | | | | | | | | | | | | | | | | | | | | 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 'bundleutilities-policy'Brad King2018-09-2010-0/+32
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b69159324a Help: Add release notes for new BundleUtilities policy eedd91ab08 BundleUtilities: Disallow inclusion at configure time fd28ea35ca Help: Add note for BundleUtilities usage 3925407e76 Help: Convert BundleUtilities help to block-style comment Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2379
| * | | | BundleUtilities: Disallow inclusion at configure timeKyle Edwards2018-09-1910-0/+32
| | |/ / | |/| | | | | | | | | | | | | | | | | | This commit adds a new CMake policy, CMP0080, which prohibits the inclusion of BundleUtilities at configure time. The old behavior is to allow the inclusion.