summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'genex-TARGET_NAME_IF_EXISTS'Brad King2018-03-2911-0/+43
|\ | | | | | | | | | | | | 7b173a2933 genex: Add TARGET_NAME_IF_EXISTS expression Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1890
| * genex: Add TARGET_NAME_IF_EXISTS expressionAlex Turbov2018-03-2811-0/+43
| | | | | | | | | | Define `$<TARGET_NAME_IF_EXISTS:tgt>` to mean `tgt` if the target exists and otherwise an empty string.
* | Merge topic 'cmake_minimum_required-forward-compat'Craig Scott2018-03-275-0/+9
|\ \ | | | | | | | | | | | | | | | | | | 8dc97acb03 cmake_minimum_required: Tolerate unknown future arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1888
| * | cmake_minimum_required: Tolerate unknown future argumentsBrad King2018-03-265-0/+9
| |/ | | | | | | | | | | | | | | | | When a `...<max>` version is given that is larger than the running version of CMake, assume that the project is aware of a newer version of CMake and that any unknown arguments are future arguments. This will allow future versions of CMake to add arguments to the command that projects can use without introducing errors in older versions of CMake (back to 3.12).
* | Merge topic 'revert-CTestTestfile-removal-again'Brad King2018-03-274-0/+14
|\ \ | |/ |/| | | | | | | | | 70c50aa23c Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1887
| * Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF"Brad King2018-03-264-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit v3.8.0-rc1~305^2 (Remove CTestTestfile.cmake when BUILD_TESTING is OFF, 2016-11-14) again. We reverted it once in commit v3.8.0-rc3~22^2 (Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF", 2017-03-06) but it was accidentally restored by commit v3.11.0-rc1~387^2 (server: add "ctestInfo" request to get test info, 2017-10-25), perhaps due to conflict resolution during rebase. We cannot remove `CTestTestfile.cmake` when testing is off because it breaks projects that never enable testing but create their own `CTestTestfile.cmake` manually instead. Revert the change again and add a test case.
| * Merge branch 'gtest_discover_tests_timeout' into release-3.11Brad King2018-03-1613-10/+113
| |\ | | | | | | | | | Merge-request: !1851
* | \ Merge topic 'list-sublist'Craig Scott2018-03-2217-0/+86
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 768225837d list: Add SUBLIST sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1874
| * | | list: Add SUBLIST sub-commandMarc Chevrier2018-03-2117-0/+86
| | | | | | | | | | | | | | | | Issue: #17823
* | | | Merge topic 'policy-version-range'Craig Scott2018-03-226-0/+79
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45408b5ea1 cmake_minimum_required: Optionally set policies with version range 6a41aa2abd cmPolicies: Split parsing and impl of ApplyPolicyVersion 1d00ed7cf7 cmPolicies: Drop unnecessary check from ApplyPolicyVersion 0df559832b cmPolicies: Pass policy version as std::string Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1864
| * | | | cmake_minimum_required: Optionally set policies with version rangeBrad King2018-03-216-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach `cmake_minimum_required` and `cmake_policy(VERSION)` to support a version range of the form `<min>[...<max>]`. Define this to mean that version `<min>` is required, but known policies up to those introduced by `<max>` will be set to `NEW`. This will allow projects to easily specify a range of versions for which they have been updated.
* | | | | Merge topic 'clarify_inherited_properties'Brad King2018-03-224-0/+134
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ff6234509e Help: Clarify behavior of INHERITED properties 9cc97ab4dc Tests: Add tests for INHERITED property chaining Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1879
| * | | | | Tests: Add tests for INHERITED property chainingCraig Scott2018-03-214-0/+134
| | | | | |
* | | | | | Merge topic 'find-package_root-revise'Brad King2018-03-221-2/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3f479a3ca3 find_package: Improve CMP0074 warning messages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1880
| * | | | | | find_package: Improve CMP0074 warning messagesBrad King2018-03-211-2/+6
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Policy `CMP0074` was added by commit eb35d8884b (find_package: Use PackageName_ROOT variables as search prefixes, 2018-03-15). Revise the logic to avoid warning when a `PackageName_ROOT` variable is set to empty since that won't change the search behavior. Also, when we do warn include the variable value(s) for reference.
* | | | | | Merge topic 'FindPython-new-implementation'Brad King2018-03-215-7/+36
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 50b5e9ed13 CMake build: Use new FindPython module 352baee207 FindPython*: New implementation for Python stuff Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Merge-request: !1819
| * | | | | CMake build: Use new FindPython moduleMarc Chevrier2018-03-202-5/+4
| | | | | |
| * | | | | FindPython*: New implementation for Python stuffMarc Chevrier2018-03-203-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #16142
* | | | | | list(): add `JOIN` sub-commandMarc Chevrier2018-03-2011-0/+41
| |/ / / / |/| | | |
* | | | | Merge topic 'find-package_root-restore'Brad King2018-03-199-3/+95
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb35d8884b find_package: Use PackageName_ROOT variables as search prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1858
| * | | | | find_package: Use PackageName_ROOT variables as search prefixesBrad King2018-03-169-3/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature was originally added by commit v3.9.0-rc1~71^2~2 (find_*: Add a new PackageRoot search path group, 2017-05-03) and documented by commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search path group, 2017-05-03). However, we had to disable the feature and remove the documentation in commit v3.9.1~2^2 (find_*: Disable the PACKAGE_ROOT search path group for CMake 3.9, 2017-08-08) due to breaking projects that used `PackageName_ROOT` variables themselves. Add policy `CMP0074` to restore the `PackageName_ROOT` variable behavior in a compatible way. Also revise the stack of root paths to store the paths themselves rather than the package names. This way the policy can be considered at the `find_package` call site instead of individual `find_` calls inside a find module. Co-Author: Chuck Atkins <chuck.atkins@kitware.com> Issue: #17144
* | | | | | Merge topic 'export-properties'Brad King2018-03-1911-0/+58
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6db61f0725 Export: allow exporting of additional properties Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1834
| * | | | | | Export: allow exporting of additional propertiesWouter Klouwen2018-03-1611-0/+58
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces an additional property that may be set on a target to allow additional properties to be exported. Normally only a limited number of properties are exported. Additional properties may be exported by simply setting the `EXPORT_PROPERTIES` property on a target that is exported.
* | | | | | Merge topic 'vs-debugger-command'Brad King2018-03-193-0/+28
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5a7113d8fb VS: Add target property VS_DEBUGGER_COMMAND Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1842
| * | | | | VS: Add target property VS_DEBUGGER_COMMANDHannes Mezger2018-03-143-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #17819
* | | | | | Merge topic 'project-homepage-url'Craig Scott2018-03-1710-3/+37
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 73f9b2974c project: Add HOMEPAGE_URL named parameter fd28c382b4 project: Add <PROJECT-NAME>_DESCRIPTION 9b57cb62ea Help: Fix minor typo in docs for CMAKE_PROJECT_DESCRIPTION c89993d529 Tests: Avoid enabling languages unnecessarily in RunCMake.project Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1816
| * | | | | project: Add HOMEPAGE_URL named parameterAlex Turbov2018-03-169-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This sets variables like PROJECT_HOMEPAGE_URL, which can be used as default values for various things (packaging modules, doxygen defaults, etc.). Some packaging modules have been updated to do this as part of this commit. Co-Author: Craig Scott <craig.scott@crascit.com>
| * | | | | Tests: Avoid enabling languages unnecessarily in RunCMake.projectBrad King2018-03-151-1/+1
| | |/ / / | |/| | |
* | | | | Merge topic 'gtest_discover_tests_timeout'Brad King2018-03-1613-10/+113
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | | | | | | | | | 96fdde26bb GoogleTest: Rename TIMEOUT parameter to avoid clash Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1851
| * | | GoogleTest: Rename TIMEOUT parameter to avoid clashCraig Scott2018-03-1513-10/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In gtest_discover_tests(), the TIMEOUT keyword was making it impossible to set the TIMEOUT test property via the PROPERTIES keyword. This would be a frequent case, but it doesn't complain and instead silently does something different to what would normally be expected. The TIMEOUT keyword has been renamed to DISCOVERY_TIMEOUT, thereby removing the clash. This is a breaking change. 3.10.1 and 3.10.2 were the only versions that supported the TIMEOUT keyword and uses of it were likely not working as intended. Fixes: #17801
* | | | Merge topic 'ep-support-passing-var-ending-with-notfound'Brad King2018-03-124-2/+22
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | 7ad981c8f7 ExternalProject: Fix cache generation when last args ends with "-NOTFOUND" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1838
| * | | ExternalProject: Fix cache generation when last args ends with "-NOTFOUND"Jean-Christophe Fillion-Robin2018-03-124-2/+22
| | | |
* | | | Merge topic 'genex-TARGET_EXISTS'Brad King2018-03-1211-0/+43
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 7fec336bf7 genex: Add TARGET_EXISTS to check for target existence Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1829
| * | | genex: Add TARGET_EXISTS to check for target existenceAlex Turbov2018-03-0911-0/+43
| | | | | | | | | | | | | | | | | | | | Define `$<TARGET_EXISTS:a>` to `1` if `a` is an existed target name, else `0`.
* | | | Merge topic 'cmWorkingDirectory_success_checking'Brad King2018-03-0913-0/+59
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5901699672 cmDepends: Remove attempt to change directory that always fails e60e4dfc88 cmWorkingDirectory: Check success of current dir changes e654622aee Tests: Add --build-and-test test case a865f0beb2 Tests: Confirm test working dir set successfully Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1817
| * | | | cmWorkingDirectory: Check success of current dir changesCraig Scott2018-03-082-0/+2
| | | | |
| * | | | Tests: Add --build-and-test test caseCraig Scott2018-03-044-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Checks that giving an invalid build directory to ctest --build-and-test will fail.
| * | | | Tests: Confirm test working dir set successfullyCraig Scott2018-03-048-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | Specifically, this tests that setting WORKING_DIRECTORY to an invalid directory results in the test failing.
* | | | | Merge topic 'sort_glob_output'Brad King2018-03-093-0/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87a6816baf Add test for sorting and deduping of file(GLOB) result b688d4fd22 file(GLOB): Ensure entire file list is sorted Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1821
| * | | | | Add test for sorting and deduping of file(GLOB) resultShane Parris2018-03-073-0/+24
| | |/ / / | |/| | |
* | | | | Merge topic 'project-warn-missing-metadata-values'Craig Scott2018-03-089-1/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 587bad7ba2 project: warn on metadata arguments missing values Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1815
| * | | | | project: warn on metadata arguments missing valuesAlex Turbov2018-03-079-1/+17
| | |/ / / | |/| | | | | | | | | | | | | Warn if `DESCRIPTION` or `VERSION` is given without a following value.
* | | | | Merge topic 'avoid-LIB_DEPENDS'Brad King2018-03-085-0/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7723e9a058 Do not produce legacy _LIB_DEPENDS cache entries 2124a1364a cmTarget: Remove unnecessary RecordDependencies member 1c5bfab532 cmTarget: Simplify ClearDependencyInformation implementation 910a9d608e cmTarget: Simplify ClearDependencyInformation signature Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !1828
| * | | | | Do not produce legacy _LIB_DEPENDS cache entriesBrad King2018-03-075-0/+24
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Introduce policy `CMP0073` to avoid producing these cache entries. Fixes: #16364
* | | | | CTest: Add options to control test process affinity to CPUsBrad King2018-03-053-0/+24
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit v2.8.0~170 (ENH: Added ctest test options PROCESSORS and RUN_SERIAL, 2009-09-07) CTest learned to track the number of processors allocated to running tests in order to balance it against the desired level of parallelism. Extend this idea by introducing a new `PROCESSOR_AFFINITY` test property to ask that CTest run a test with the CPU affinity mask set. This will allow a set of tests that are running concurrently to use disjoint CPU resources.
* | | | Merge topic 'general_cleanup_enhance'Brad King2018-03-0515-2/+35
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0a21d820d3 Remove c_str() from calls to converttorelativeformake in XCode Generator f93cc4158e Refactor cmCacheManager::LoadCache to use ostringstream 915b71010c Enhance RunCMake test coverage for file(GLOB) fcaa134c6c Refactor HandleGlobCommand cf5d0b49e8 Adjust class description in cmFileTimeComparison.h Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1810
| * | | | Enhance RunCMake test coverage for file(GLOB)Shane Parris2018-02-2815-2/+35
| | | | |
* | | | | Tests: Add cases for usage requirements of linked object libsBrad King2018-03-015-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests to cover transitive usage requirements on installation and export of targets that link to object libraries. Issue: #14778
* | | | | objlib: Link object-files from `OBJECT` libraries.Deniz Bahadir2018-03-013-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: This finally links the object-files of the `OBJECT` library from the right-hand side of `target_link_libraries` to the target on the left-hand side. However, this will only happen with directly linked `OBJECT` libraries, not with `OBJECT` libraries "linked" through property `INTERFACE_LINK_LIBRARIES` of a target on the right-hand side! Fixes: #14778
* | | | | objlib: Allow `OBJECT` libraries to link to `OBJECT` libraries.Deniz Bahadir2018-03-0112-32/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: This still does not link the object-files of the `OBJECT` library from the right-hand side of `target_link_libraries` to the target on the left-hand side. (In this particular case of another `OBJECT` library on the left-hand side this would not make any sense anyway. The target on the left-hand side has no link-step.) Issue: #14778