summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'ninja-fortran-rspfile'Brad King2018-04-065-0/+15
|\ | | | | | | | | | | | | | | | | d6390ce26e Ninja: Fix Fortran support with response files 8592c6326b cmNinjaTargetGenerator: Move force-rspfile check to earlier e0aa060352 cmNinjaTargetGenerator: Move depfile logic to later in its function Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1936
| * Ninja: Fix Fortran support with response filesBrad King2018-04-055-0/+15
| | | | | | | | | | | | | | | | | | | | The Ninja generator splits preprocessing and compilation steps for Fortran. Fix this logic to work when using response files for compilation so that it works for the preprocessing step too. This fixes behavior under `CMAKE_NINJA_FORCE_RESPONSE_FILE`. Issue: #17877
* | Merge topic 'glob_configure_depends'Brad King2018-04-0619-0/+159
|\ \ | |/ |/| | | | | | | | | | | | | | | | | 6c4f8b4596 Adjust help documentation for file(GLOB), add topic notes 20612978c8 Add tests for `file(GLOB)` CONFIGURE_DEPENDS flag 3f4b81f540 Add glob verify support to XCode, VS, Ninja, and Makefile generators ca0befc2e1 Add `CONFIGURE_DEPENDS` flag support to cmFileCommand::HandleGlobCommand 599c93e22d Add cmGlobVerificationManager class, integrate with cmake and cmState Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1767
| * Add tests for `file(GLOB)` CONFIGURE_DEPENDS flagShane Parris2018-04-0219-0/+159
| |
* | Merge topic 'wcdh-bare-features'Brad King2018-04-043-1/+38
|\ \ | | | | | | | | | | | | | | | | | | f38d050231 WCDH: introduce BARE_FEATURES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1869
| * | WCDH: introduce BARE_FEATURESRolf Eike Beer2018-04-033-1/+38
| | | | | | | | | | | | | | | | | | This allows defining compat versions of some C/C++ features with the name of the keyword itself, so all code can look as if it was written for the new language standard.
* | | Merge topic 'android-no-libstdc++'Brad King2018-04-043-0/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 843d55de29 Android: Suppress implicit -lstdc++ linker flag Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1919
| * | | Android: Suppress implicit -lstdc++ linker flagBrad King2018-04-033-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The chosen STL libraries are already linked explicitly so we shouldn't let the compiler add its implicit `-lstdc++` (the default) when invoking the linker. Fixes: #17863 NDK-Issue: https://github.com/android-ndk/ndk/issues/105 Inspired-by: Tom Hughes <tomtheengineer@gmail.com>
* | | | Merge topic 'cuda_support_system_libraries_with_device_symbols'Brad King2018-04-043-0/+93
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 41eab150a8 CUDA: Pass more link libraries to device linking 88c7abb740 CUDA: Pass host linker directories to device linker Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1634
| * | | | CUDA: Pass more link libraries to device linkingRobert Maynard2018-03-283-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we dropped non-target items from the device link line because nvcc rejects paths to shared library files, and only with target items do we know the kind of library. However, this also prevents projects from linking to system-provided libraries like `cublas_device` that contain device code. Fix this by passing more link items to device linking. Items that are not file paths, such as `-lfoo`, can simply be passed unconditionally. Items that are targets known to be shared libraries can still be skipped. Items that are paths to library files can be passed directly if they end in `.a`. Otherwise, pass them using `-Xnvlink` to bypass nvcc's front-end. The nvlink tool knows to ignore shared library files. Issue: #16317
* | | | | UseSWIG: Add new behavior for better support files managementMarc Chevrier2018-04-034-3/+124
| | | | | | | | | | | | | | | | | | | | fixes: #17840
* | | | | UseSWIG: Rework testsMarc Chevrier2018-04-0226-105/+172
| |_|/ / |/| | |
* | | | Merge topic 'remove-vs8-generator'Brad King2018-04-0211-36/+12
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | eb80af9093 Drop Visual Studio 8 2005 generator e7af91d026 Tests: Remove unused file from Tutorial Step7 test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1901
| * | | Drop Visual Studio 8 2005 generatorBrad King2018-04-0210-27/+12
| | | | | | | | | | | | | | | | This generator has been deprecated since CMake 3.9. Remove it.
| * | | Tests: Remove unused file from Tutorial Step7 testBrad King2018-03-291-9/+0
| | |/ | |/| | | | | | | | | | The `build2.cmake` script looks like it was accidentally committed after being created for local testing.
* | | Merge topic 'features-c++20'Brad King2018-04-022-1/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8570dc7f64 Help: Update compiler versions in cmake-compile-features.7.rst 874d3d2948 Help: Add release note for C++ 20 support 7f295b1bd3 Features: Activate C++ 20 support for Clang 5.0+ 71cb8ce3a1 Features: Activate C++ 20 support for GNU 8.0+ 8f146c4508 Features: Activate C++ 20 support for MSVC 19.12.25835+ 7fe580a362 Features: Add infrastructure for C++ 20 language standard 1b328e09a3 Features: Use -std=c++17 for C++ 17 on Clang 5.0+ 0bc3e5788a Features: Use -std=c++17 for C++ 17 on GNU 8.0+ Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1892
| * | | Features: Add infrastructure for C++ 20 language standardBrad King2018-03-272-1/+7
| | | | | | | | | | | | | | | | Issue: #17849
* | | | Merge topic 'features-msvc-c'Brad King2018-04-023-7/+28
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a53cf69022 Features: Record C features for MSVC e62dfeccb1 Features: Do not assume c_restrict support in CompileFeatures test c22cdf78d7 Features: Fix CompileFeatures test checks for C Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Harry Mallon <hjmallon@gmail.com> Merge-request: !1897
| * | | | Features: Record C features for MSVCBrad King2018-03-292-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MSVC C compiler has no notion of C language standards or flags. Tell CMake to assume that all language standards are available. Record available C language features depending on the version of the compiler. Fixes: #17858
| * | | | Features: Do not assume c_restrict support in CompileFeatures testBrad King2018-03-281-1/+11
| | | | | | | | | | | | | | | | | | | | Define `EXPECT_C_RESTRICT` separately for each compiler.
| * | | | Features: Fix CompileFeatures test checks for CBrad King2018-03-281-3/+9
| | |/ / | |/| | | | | | | | | | Compare the HAVE_ and EXPECT_ macros as we do for CXX.
* | | | 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 'intel-initializer-list' into release-3.11Brad King2018-03-161-0/+6
| |\ \ | | | | | | | | | | | | Merge-request: !1855
| * \ \ Merge branch 'gtest_discover_tests_timeout' into release-3.11Brad King2018-03-1613-10/+113
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !1851
| * \ \ \ Merge branch 'genex-COMPILE_LANGUAGE-system-include' into release-3.11Brad King2018-03-131-1/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !1844
* | \ \ \ \ Merge topic 'contract-plplot'Brad King2018-03-261-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 53e3080be3 Tests: Restore PLplot contract test repository https URL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1883
| * | | | | | Tests: Restore PLplot contract test repository https URLBrad King2018-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch back to the `https://` repository URL but without the `.git` extensions. It seems faster than the `git://` protocol for this server.
* | | | | | | 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-2115-9/+274
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-203-7/+6
| | | | | | | |
| * | | | | | | FindPython*: New implementation for Python stuffMarc Chevrier2018-03-2012-2/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1913-0/+80
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1613-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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