summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | 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.
* | | | | | | | Merge topic 'swift-module-libraries'Brad King2024-04-164-14/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 56e5cea600 Swift: Support module libraries with command-line build systems Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9379
| * | | | | | | | Swift: Support module libraries with command-line build systemsEvan Wilde2024-04-154-14/+4
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wire up the flags needed to support module libraries built and used with Swift. We need to pass `-bundle` to the linker when linking module libraries on Darwin, and we need to pass `-export-dynamic` to the linker when emitting an executable that exports symbols on Linux. This patch wires up `CMAKE_SHARED_MODULE_CREATE_Swift_FLAGS` and `CMAKE_SHARED_MODULE_LOADER_Swift_FLAG` on Darwin, and hooks up `CMAKE_EXE_EXPORTS_Swift_FLAG` on Linux in order to support passing things correctly. We can't expose `CMAKE_EXE_LINKER_FLAGS` to Swift, as it contains flags that the Swift compiler doesn't recognize, but the other language-specific variables are safe to expose.
* | | | | | | | Merge topic 'file-GET_RUNTIME_DEPENDENCIES-macos-rpath'Brad King2024-04-166-0/+68
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3e865241f3 file(GET_RUNTIME_DEPENDENCIES): propagate parent rpath on macOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9428
| * | | | | | | | file(GET_RUNTIME_DEPENDENCIES): propagate parent rpath on macOSLuis Caro Campos2024-04-156-0/+68
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Fixes: #24400
* | | | | | | | Merge topic 'test-separate_arguments'Brad King2024-04-162-16/+14
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a716ed88e7 Tests: Avoid unnecessary copy of cmake in RunCMake.separate_arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9424
| * | | | | | | Tests: Avoid unnecessary copy of cmake in RunCMake.separate_argumentsBrad King2024-04-152-16/+14
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `cmake` binary can be quite large in debug builds. Inspired-by: Rolf Eike Beer <eb@emlix.com>
* | | | | | | Merge topic 'cxxmodules-import-std'Brad King2024-04-1562-1/+810
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 429902ebad Clang: support creating a target for imported modules 4617f272b4 MSVC: support `import std` 62a71047bb cmGraphVizWriter: ignore `__cmake_`-prefixed targets 442086c1dc fileapi: ignore `__cmake_`-prefixed targets ffe74289b3 CMakeDetermineCompilerId: extract C++ standard library impl 15bbd1d9b8 Experimental: add an experimental feature gate for `import std` f80c60df02 CMakeDetermineCompilerSupport: construct C++ modules targets 19341e2582 ci: enable `import_std23` C++ module tests on MSVC ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9337
| * | | | | | Experimental: add an experimental feature gate for `import std`Ben Boeckel2024-04-1219-0/+112
| | | | | | |
| * | | | | | Tests/CXXModules: mask C++23 std module targetsBen Boeckel2024-04-115-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests mess with the availability of C++ module support. Hide generation of the utility targets from any compiler detection.
| * | | | | | cmTarget: support the `CXX_MODULE_STD` propertyBen Boeckel2024-04-111-0/+1
| | | | | | |
| * | | | | | Tests/CXXModules: test using targets that import `std`Ben Boeckel2024-04-113-0/+37
| | | | | | |
| * | | | | | Tests/CXXModules: add tests for exporting `CXX_MODULE_STD`Ben Boeckel2024-04-1111-0/+243
| | | | | | |
| * | | | | | Tests/CXXModules: add tests that the C++ std targets don't get exportedBen Boeckel2024-04-119-0/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These targets are purely internal and should never be exported.
| * | | | | | Tests/CXXModules; add tests for `CXX_MODULE_STD` behaviorBen Boeckel2024-04-117-0/+53
| | | | | | |
| * | | | | | Tests/CXXModules: add tests for genex usage in `CXX_MODULE_STD`Ben Boeckel2024-04-1111-0/+70
| | | | | | |
| * | | | | | Tests/CXXModules/vs-without-flags: use C++20Ben Boeckel2024-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | C++23 has complications with `import std` expectations.
| * | | | | | Tests/CXXModules: add a test for the `CXX_MODULE_STD` propertyBen Boeckel2024-04-115-0/+21
| | | | | | |
| * | | | | | Tests/CXXModules: add test case for `import std` supportBen Boeckel2024-04-113-0/+28
| |/ / / / /
* | | | | | Merge topic 'genex-compatible-interface'Brad King2024-04-122-6/+227
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c94cfe92eb GenEx: Fix COMPATIBLE_INTERFACE_ evaluation outside usage requirements 061f7a6b97 GenEx: Remove redundant condition in COMPATIBLE_INTERFACE_ evaluation 86f99c5f6d GenEx: Add COMPATIBLE_INTERFACE_ implementation comments 541a788264 Tests: Add COMPATIBLE_INTERFACE_ cases outside usage requirements 5ebcf96170 Tests: Add COMPATIBLE_INTERFACE_ cases for library targets f4249cf86f Tests: Add COMPATIBLE_INTERFACE_NUMBER_{MAX,MIN} transitive-only cases Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9423
| * | | | | GenEx: Fix COMPATIBLE_INTERFACE_ evaluation outside usage requirementsBrad King2024-04-111-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit ff6c401309 (cmTarget: Add interface for compatible numeric properties, 2013-10-22, v3.0.0-rc1~460^2) the condition dagCheckerParent && !dagCheckerParent->EvaluatingLinkLibraries() was written that way to avoid a nullptr dereference, but is actually meant to say "is not evaluating link libraries". That can also be true when there is no `dagCheckerParent`, such as when evaluating a generator expression outside of usage requirements, e.g., for `add_custom_target`. The original commit tried to account for that by duplicating the implementation in another code path, but that did not work in all cases. Fix the condition, remove the duplication, and enable tests for the now-working cases.
| * | | | | Tests: Add COMPATIBLE_INTERFACE_ cases outside usage requirementsBrad King2024-04-112-1/+52
| | | | | |
| * | | | | Tests: Add COMPATIBLE_INTERFACE_ cases for library targetsBrad King2024-04-112-4/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The transitive (or not) behavior of these properties depends on the target type. Add cases for STATIC, OBJECT, and INTERFACE libraries.
| * | | | | Tests: Add COMPATIBLE_INTERFACE_NUMBER_{MAX,MIN} transitive-only casesBrad King2024-04-112-3/+11
| | | | | |
* | | | | | Merge topic 'restore-pkg-prefix-var'Brad King2024-04-115-102/+0
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | 0e4db17764 CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9420
| * | | | CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variableBrad King2024-04-115-102/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit 6ddf8712cd (CMakePackageConfigHelpers: Use unique variable name for pkg prefix, 2024-03-30, v3.29.1~8^2). It regressed existing projects that rely on the undocumented `PACKAGE_PREFIX_DIR` variable in package configuration files generated by `CMakePackageConfigHelpers`. Fixes: #25873 Fixes: #25885 Issue: #25827
* | | | | Merge topic 'GenerateExportHeader-clang-tidy'Brad King2024-04-1116-0/+16
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 461ae86e6f GenerateExportHeader: Suppress clang-tidy warning Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9418
| * | | | | GenerateExportHeader: Suppress clang-tidy warningClausKlein2024-04-1016-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Add `NOLINT` for `unconditional-preprocessor-if` in generated files.
* | | | | | Merge topic 'compiler-path-normalization'Brad King2024-04-119-38/+34
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 26e79ed299 Fix regression on reconfigure with unnormalized -DCMAKE_<LANG>_COMPILER= 1d485a8b45 Tests/RunCMake/CompilerChange: Simplify test cases Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Ashay Rane <ashay.r@gmail.com> Merge-request: !9416
| * | | | | Fix regression on reconfigure with unnormalized -DCMAKE_<LANG>_COMPILER=Brad King2024-04-103-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 3f2a5971c0 (Modules: CMAKE_*_COMPILER convert path to cmake path, 2023-12-02, v3.29.0-rc1~292^2) we normalize the path to the compiler. Update our logic that checks whether the compiler has changed to account for path normalization. Fixes: #25883 Issue: #25456
| * | | | | Tests/RunCMake/CompilerChange: Simplify test casesBrad King2024-04-107-39/+20
| | | | | |
* | | | | | Merge topic 'FindJasper-imported-target'Brad King2024-04-112-13/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c6408577d6 ci: Enable FindJasper test on Fedora 28f4941bc7 ci: Add Jasper to Fedora base image 254358a91b Merge branch 'backport-FindJasper-imported-target' 4ab860c4c7 FindJasper: Fix Jasper::Jasper IMPORTED_CONFIGURATIONS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9415
| * | | | | | ci: Enable FindJasper test on FedoraBrad King2024-04-102-13/+7
| | |/ / / / | |/| | | |
* | | | | | Merge topic 'cmake_language-test-experimental-feature-query'Brad King2024-04-1110-0/+69
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8fd089018d Tests/RunCMake/cmake_language: test GET_EXPERIMENTAL_FEATURE_ENABLED 46da8e64b0 cmCMakeLanguageCommand: use `cmExperimental::FeatureByName` e8582abc6d cmExperimental: add support for getting a feature value from its name Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9414
| * | | | | Tests/RunCMake/cmake_language: test GET_EXPERIMENTAL_FEATURE_ENABLEDBen Boeckel2024-04-1010-0/+69
| | | | | |
* | | | | | Merge topic 'swift-fix-submodule-dependencies'Brad King2024-04-101-0/+3
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / | | | | | | | | | | | | | | | 579472d877 Swift: Ninja: Remove module dependency for executables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9411
| * | | | Swift: Ninja: Remove module dependency for executablesEvan Wilde2024-04-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We shouldn't include the swiftmodule in the ninja dependency graph unless that target emits a swiftmodule. Fixes: #25869
* | | | | Merge topic 'nolint-header-sets-and-unity'Brad King2024-04-091-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 773dc0a297 Unity: Suppress clang-tidy include checks eb66549c7c VERIFY_INTERFACE_HEADER_SETS: Suppress clang-tidy include checks b0773aa4f6 VERIFY_INTERFACE_HEADER_SETS: Add IWYU pragma as C-style comment Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9404
| * | | | | VERIFY_INTERFACE_HEADER_SETS: Suppress clang-tidy include checksClausKlein2024-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `clang-tidy-17` adds include checks similar to IWYU. Suppress them in generated code.
| * | | | | VERIFY_INTERFACE_HEADER_SETS: Add IWYU pragma as C-style commentClausKlein2024-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 6942234bf5 (VERIFY_INTERFACE_HEADER_SETS: Add IWYU pragma: associated to verification file, 2022-10-07, v3.25.0-rc1~22^2) the comment was added as a C++-style comment. The feature works in C too, so use a C-style comment.
* | | | | | C++26: Fix C++/CUDA/HIP compile feature supportRaul Tambre2024-04-092-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit f808d8afb9 (CMake: Support upcoming C++26 language level, 2022-08-19, v3.25.0-rc1~218^2) we forgot some necessary scaffolding. Fixes: #25819
* | | | | | Clang: Fix detection of C++26 when targeting MSVC ABIBrad King2024-04-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | `_MSVC_LANG` may not be defined higher than C++20, but `__cplusplus` is.
* | | | | | Merge topic 'test-pkg-config-gobject-introspection'Brad King2024-04-081-1/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 870500a326 Tests: Update RunCMake.FindPkgConfig gobject-introspection expectation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9405
| * | | | | | Tests: Update RunCMake.FindPkgConfig gobject-introspection expectationVladimir Petko2024-04-081-1/+2
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gobject-introspection 1.79+ uses binaries with an arch-specific prefix, such as `/usr/bin/x86_64-linux-gnu-g-ir-scanner`. Fixes: #25865
* | | | | | Merge topic 'test-compile-features'Brad King2024-04-0817-59/+127
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31acc90abe ci: Record expected C and CXX language standard support c37e279014 Tests/CompileFeatures: Cover c_std_## and cxx_std_## meta-features 58cd9ee03c Tests/CompileFeatures: Factor out headers to compute C and C++ standard levels Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9401
| * | | | | | ci: Record expected C and CXX language standard supportBrad King2024-04-052-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explicitly enable standard levels in the `CompileFeatures` test that are expected to work in each job regardless of whether compiler inspection detects support.
| * | | | | | Tests/CompileFeatures: Cover c_std_## and cxx_std_## meta-featuresBrad King2024-04-0512-0/+58
| | | | | | |
| * | | | | | Tests/CompileFeatures: Factor out headers to compute C and C++ standard levelsBrad King2024-04-054-59/+60
| | | | | | |
* | | | | | | Merge topic 'lang-std-levels'Brad King2024-04-082-18/+61
|\ \ \ \ \ \ \ | |/ / / / / / | | | / / / / | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80a5a86514 GNU: Fix detection of C++ 11 mode in GCC 4.{4,5,6} c9cc3dc646 PGI: Fix detection of C++ 14/17 modes 7f05d472a2 NVHPC: Fix detection of C++ 20 mode on NVHPC < 22.7 3587579f34 XL/XLClang: Fix detection of C++ 14 mode on Linux 863cde8c19 Intel: Fix detection of C++ 14/17 modes on Linux/macOS 1e774a86d3 Intel: Fix detection of C++ 17/20 modes on Windows b9d4db7098 CompilerId: Clarify C and C++ standard level detection ae18811f2e IntelLLVM: Add C standard flags on Windows ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9412