summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests/CXXModules: add tests for C++26 `import std` supportBen Boeckel2024-05-026-0/+52
|
* cxxmodules: give a reason for unavailability of `import std`Ben Boeckel2024-05-021-1/+6
| | | | | If the `CMAKE_CXX<STANDARD>_COMPILER_IMPORT_STD_NOT_FOUND_MESSAGE` variable is set, include its value in the error message.
* Merge topic 'genex-link-properties'Brad King2024-05-0116-2/+174
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ddb9442f48 GenEx: Fix TARGET_PROPERTY evaluation of transitive link properties 862b8e28ad GenEx: Teach TARGET_PROPERTY evaluation to optionally pierce LINK_ONLY 8d1d6a1437 Tests: Cover TARGET_PROPERTY genex evaluation of transitive link properties abf607c2ec Tests: Cover TARGET_PROPERTY genex evaluation of transitive build properties 7d3d728a72 Help: Clarify CMP0099 documentation and summary text 79a3ae9a0d cmGeneratorExpressionDAGChecker: Simplify transitive property table e8010b67c7 cmGeneratorExpressionDAGChecker: Make local generator available in constructor b36fb3f6f1 cmGeneratorExpressionNode: Remove outdated lint suppression Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9473
| * GenEx: Fix TARGET_PROPERTY evaluation of transitive link propertiesBrad King2024-04-298-11/+23
| | | | | | | | | | | | | | | | | | In commit bbba701899 (Link properties: must be transitive over private dependency on static library, 2019-12-06, v3.17.0-rc1~323^2) and commit af9d4f24ae (Link properties: must be transitive over private dependency on static library, 2019-12-11, v3.17.0-rc1~305^2) we neglected to implement CMP0099 NEW behavior for `TARGET_PROPERTY` evaluation. Add policy CMP0166 to fix this.
| * Tests: Cover TARGET_PROPERTY genex evaluation of transitive link propertiesBrad King2024-04-294-1/+65
| | | | | | | | Demonstrate that TARGET_PROPERTY does not honor CMP0099 from CMake 3.17.
| * Tests: Cover TARGET_PROPERTY genex evaluation of transitive build propertiesBrad King2024-04-299-0/+96
| |
* | Merge topic 'export-name-safe-name'Brad King2024-05-017-0/+298
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 142a85f9c1 cxxmodules: use filesystem-safe export names in filenames 4452d41488 cmGeneratorTarget: add method to get a filesystem-safe export name Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9474
| * | cxxmodules: use filesystem-safe export names in filenamesBen Boeckel2024-04-307-0/+298
| | | | | | | | | | | | | | | | | | Also add tests. Fixes: #25828
* | | Merge topic 'lang-standard-latest'Brad King2024-05-0122-0/+114
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7c38e6bb52 Add CMAKE_<LANG>_STANDARD_LATEST variables fddb165c6c AppleClang: Fix Objective C 23 support detection 1dff17108d Modules: Fix ARMClang and TIClang language standard compile options Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9314
| * | | Add CMAKE_<LANG>_STANDARD_LATEST variablesTyler2024-04-3022-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a variable to indicate the latest standard known to be supported for each language: * `CMAKE_C_STANDARD_LATEST` * `CMAKE_CXX_STANDARD_LATEST` * `CMAKE_CUDA_STANDARD_LATEST` * `CMAKE_HIP_STANDARD_LATEST` * `CMAKE_OBJC_STANDARD_LATEST` * `CMAKE_OBJCXX_STANDARD_LATEST` These variables, more generally referred to as `CMAKE_<LANG>_STANDARD_LATEST`, are assigned an integer value which represents the minimum between the latest version of the associated language standard supported by the current compiler and the latest version supported by CMake. Add documentation for these variables in a new page called `CMAKE_<LANG>_STANDARD_LATEST` was added under the "Variables for Languages" section of the `cmake-variables(7)` page. Update each compiler-specific CMake script under `${CMAKE_ROOT}\Modules\Compiler` to manually define the relevant `CMAKE_<LANG>_STANDARD_LATEST` variable as necessary. This will require updating and maintaining as newer compiler versions become recognized by CMake. Closes: #25717
* | | | Merge topic 'ps1-not-exe'Brad King2024-05-011-0/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f9817b7cb Remove unnecessary executable permission from .ps1 scripts Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !9477
| * | | | Remove unnecessary executable permission from .ps1 scriptsBrad King2024-04-301-0/+0
| | |_|/ | |/| | | | | | | | | | | | | | Powershell scripts cannot be launched as commands on Windows. They must be run through the `powershell` or `pwsh` tool.
* | | | Merge topic 'tests-xcodebuild-version-scleanup'Brad King2024-05-014-45/+27
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 40fa2c1c90 Tests: Cleanup CMake_TEST_XCODE_VERSION code abd1b02dfa Tests/Architecture: Have test support Xcode 10+ Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9466
| * | | Tests: Cleanup CMake_TEST_XCODE_VERSION codeJuan Ramos2024-04-293-21/+10
| | | | | | | | | | | | | | | | | | | | | | | | - Consolidate calls to xcodebuild -version - Handles cases where CMake_TEST_XCODE_VERSION is 0 to allow running tests with only command-line tools.
| * | | Tests/Architecture: Have test support Xcode 10+Juan Ramos2024-04-292-24/+17
| |/ /
* | | Merge topic 'exported-modules-with-headers'Brad King2024-04-3010-0/+184
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | 2041f7c9bf cmGeneratorTarget: add the original target as a COMPILE_ONLY link 051c2110c8 Tests/CXXModules: test exporting modules which include headers Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9469
| * | Tests/CXXModules: test exporting modules which include headersBen Boeckel2024-04-2710-0/+184
| |/ | | | | | | | | Test that headers that are part of the same target are available to modules in the target itself.
* | Merge topic 'test-dir-preset'Brad King2024-04-252-3/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | c971212703 ctest: Allow --test-dir override when using presets Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9448
| * | ctest: Allow --test-dir override when using presetscastro-ma2024-04-242-3/+30
| | | | | | | | | | | | Fixes: #23982
* | | Merge topic 'ci-fedora-40'Brad King2024-04-251-8/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | acf1179e74 ci: Verify that C++26 modes work with GCC and Clang on Fedora b05f94fa10 ci: Enable FindOpenACC tests in LLVM/Clang jobs on Fedora c722bde0e3 ci: Enable FindOpenACC test for each language independently b84b0fdd89 ci: Enable FindOpenMP tests in LLVM/Clang jobs on Fedora 4590255c63 ci: Subsume GCC C++ modules testing in main Fedora jobs 9c004ddb3d ci: use Fedora 40 images and environments 0f56cc9a4e ci: update Linux image to Fedora 40 21ef873660 clang-tidy module: Update to build against LLVM/Clang 18 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9462
| * | ci: Enable FindOpenACC test for each language independentlyBrad King2024-04-241-8/+2
| | |
* | | Merge topic 'ninja-swift-verbosity'Brad King2024-04-241-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | c5ef7fac23 Swift/Ninja: Add description to Swift object build steps Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9451
| * | | Swift/Ninja: Add description to Swift object build stepsJeremy Day2024-04-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, Ninja displays the full build command for the object which is very verbose. Warnings are often lost in the noise, and compile errors take some searching to find. If a build step fails, Ninja will still print out the full build command, so there's no loss of useful information. Fixes: #25853
* | | | Merge topic 'xcode-default-file-type'Brad King2024-04-241-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | 3071660247 Xcode: Use builtin "default" file type Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9446
| * | | Xcode: Use builtin "default" file typeIlya Kulakov2024-04-231-1/+1
| |/ / | | | | | | | | | | | | "sourcecode" is not appropriate for binary files, such as video, and hinders Xcode performance.
* | | Merge topic 'pkg_get_variable-list'Brad King2024-04-233-1/+35
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 9ddef32ba0 FindPkgConfig: Fix parsing of quoted lists with pkgconf <1.5.1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9447
| * | FindPkgConfig: Fix parsing of quoted lists with pkgconf <1.5.1Kerem Aksu2024-04-203-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unquote pkg-config output if they are printed within quotes. pkgconf <1.5.1 and classic pkg-config <0.29.1 prints quoted variables without unquoting them, this breaks returning variables with multiple values as a list behavior of CMake. Add a new test case for pkg_get_variable with multiple values to test list behavior and backslash escaped spaces within variable values. Fixes: #25904
* | | Merge topic 'save-restore-PACKAGE_PREFIX_DIR'Brad King2024-04-225-3/+115
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 41f4e1c457 CMakePackageConfigHelpers: Document PACKAGE_PREFIX_DIR for public use c5231ba29e find_package: Save/restore PACKAGE_PREFIX_DIR 8ac7958e3a generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIR bf88879f1f generate_apple_architecture_selection_file: Avoid early returns a4ac2c92f4 Help: Add missing section heading for apple architecture selection b7fcc44be9 Help: Fix CMakePackageConfigHelpers typos, grammar and formatting f1cacaa830 Tests/RunCMake/CMakePackage: Define variable closer to where it is used Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9430
| * | | find_package: Save/restore PACKAGE_PREFIX_DIRCraig Scott2024-04-193-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Package configuration files generated by `configure_package_config_file` set this variable in `@PACKAGE_INIT@` and then use it later. There may be intervening calls to `find_package`, e.g., via `find_dependency`. If the loaded package also used `configure_package_config_file`, it may change the value of `PACKAGE_PREFIX_DIR`. Explicitly save and restore the value to avoid this. Fixes: #25827
| * | | generate_apple_*_selection_file: Save/restore PACKAGE_PREFIX_DIRCraig Scott2024-04-193-0/+60
| | | | | | | | | | | | | | | | Issue: #25827
| * | | Tests/RunCMake/CMakePackage: Define variable closer to where it is usedBrad King2024-04-151-3/+4
| | | |
* | | | Merge topic 'cuda-std'Brad King2024-04-2211-3/+53
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb0990ef04 Tests/CompileFeatures: Cover cuda_std_## meta-features 011f3d1dd3 Tests/CompileFeatures: Fix c_std_23 case with Clang < 14 1f40604421 Tests/CompileFeatures: Cover CUDA default standard level 138436609f CUDA: Fix detection of default C++ standard level with MSVC host compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9444
| * | | | Tests/CompileFeatures: Cover cuda_std_## meta-featuresBrad King2024-04-199-1/+33
| | | | |
| * | | | Tests/CompileFeatures: Fix c_std_23 case with Clang < 14Brad King2024-04-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generalize the `__STDC_VERSION__` exception previously added for AppleClang < 14 to also cover LLVM/Clang < 14. Although the two vendors do not follow the same version scheme, the major versions happen to match in this case.
| * | | | Tests/CompileFeatures: Cover CUDA default standard levelBrad King2024-04-183-0/+19
| | | | |
* | | | | Merge topic 'cxxmodules-import-std-user-detect'Brad King2024-04-191-4/+15
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 678717f3e4 cxxmodules: provide a detection variable for `import std` Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: huangqinjin <huangqinjin@gmail.com> Merge-request: !9442
| * | | | | cxxmodules: provide a detection variable for `import std`Ben Boeckel2024-04-181-4/+15
| | | | | |
* | | | | | Merge topic 'FindBacktrace-imported-library'Brad King2024-04-181-3/+6
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | b26ce8a1c9 Tests/FindBacktrace: Fix compilation as C90 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9443
| * | | | | Tests/FindBacktrace: Fix compilation as C90Brad King2024-04-171-3/+6
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Revise the test from commit 9433755e5d (FindBacktrace: Add imported library, 2024-04-06) to work when compiled as C90.
* | | | | Merge topic 'invalid-ctest-arg-revisions'Brad King2024-04-181-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 96dbf6c34a ctest: Cleanup for invalid argument handling Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9440
| * | | | | ctest: Cleanup for invalid argument handlingMartin Duffy2024-04-171-1/+2
| |/ / / / | | | | | | | | | | | | | | | Backs out unrelated change and changes error message to 'Unknown argument'
* | | | | Merge topic 'tests_gdk_init'Brad King2024-04-181-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1928e7758d Tests: fix calling gdk_init() Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9441
| * | | | Tests: fix calling gdk_init()Rolf Eike Beer2024-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | gdk_init() takes pointers to these arguments so it can modify them to strip all arguments already consumed.
* | | | | C++26: Support detection as the default standardRaul Tambre2024-04-163-3/+8
| |/ / / |/| | | | | | | | | | | | | | | This was missed in commit f808d8afb9 (CMake: Support upcoming C++26 language level, 2022-08-19, v3.25.0-rc1~218^2).
* | | | Merge topic 'test-configure'Brad King2024-04-161-44/+43
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2e9742cb3d Tests/RunCMake/Configure: Improve variable scoping Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9433
| * | | | Tests/RunCMake/Configure: Improve variable scopingBrad King2024-04-151-44/+43
| | | | |
* | | | | Merge topic 'FindBacktrace-imported-library'Brad King2024-04-164-0/+75
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9433755e5d FindBacktrace: Add imported library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9406
| * | | | | FindBacktrace: Add imported libraryDavid Faure2024-04-154-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to avoid (a future version of) Qt from having to wrap FindBacktrace like [1]. [1] https://code.qt.io/cgit/qt/qtbase.git/tree/cmake/FindWrapBacktrace.cmake
* | | | | | Merge topic 'lcc-updates-2024-04'Brad King2024-04-161-0/+11
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f89ecb073 Tests: Exclude more tests found to be failing on broken libc on Elbrus b0551cce64 cmArgumentParserTypes: Workaround for ICE on e2k Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9426
| * | | | | | Tests: Exclude more tests found to be failing on broken libc on Elbrusmakise-homura2024-04-121-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since last commit on this topic on Jan 15, 2024, nightly testing has found some other CPack tests failing on broken libc on Elbrus, which was revealed after transition to libuv. These tests are excluded in this condition.