summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | Tests/CXXModules: fix key set mismatch error messagesBen Boeckel2023-09-251-2/+2
| | | | | | |
| * | | | | | Tests/CXXModules: use a less generic name for the configBen Boeckel2023-09-254-18/+18
| | | | | | |
| * | | | | | Tests/CXXModules: replace the object extension as wellBen Boeckel2023-09-252-0/+2
| | | | | | |
| * | | | | | Tests/CXXModules: fix error detection propagationBen Boeckel2023-09-254-2/+15
| | | | | | |
* | | | | | | Merge topic 'autogen-timestamp-per-config'Brad King2023-09-277-75/+198
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bac468ddfd AutoGen: Fix regression in timestamps on multi-config generators c3f0825d3c Tests/RunCMake/Autogen: Factor out test setup 9654835b4f Tests/RunCMake/Autogen: Add expect_n_times() function Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8840
| * | | | | | | AutoGen: Fix regression in timestamps on multi-config generatorsOrkun Tokdemir2023-09-261-42/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit fddd0f0443 (Autogen: AUTO*_EXECUTABLE: add support for per-config values, 2023-06-14) we do not correctly generate outputs for one configuration after another configuration has been built. Fix this: - Revert some config based stuff for `Xcode` due to the `$<CONFIG>` genex usage limitation in source files with `Xcode`. - For multi-config generators use a per-config `timestamp_$<CONFIG>` file instead of one `timestamp` file. Fixes: #25261
| * | | | | | | Tests/RunCMake/Autogen: Factor out test setupOrkun Tokdemir2023-09-266-33/+39
| | | | | | | |
| * | | | | | | Tests/RunCMake/Autogen: Add expect_n_times() functionOrkun Tokdemir2023-09-261-0/+10
| | |_|_|/ / / | |/| | | | |
* | | | | | | Tests: Fix RunCMake.XcFramework in symlinked paths with Xcode 15Brad King2023-09-261-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `xcodebuild -create-xcframework` tool in Xcode 15.0 fails to compute relative paths if the input paths have symlinks.
* | | | | | | Tests: Fix failures on macOS arm64 due to Xcode 15 skipping ad-hoc signatureBrad King2023-09-262-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update commit 1c15eb39d2 (Tests: Suppress failures on macOS arm64 due to separate Xcode signing phase, 2021-02-22, v3.20.0-rc2~11^2) for Xcode 15, which ignores our `-Xlinker -adhoc_codesign` flag, prioritizes its own `-Xlinker -no_adhoc_codesign` flag, and does not add an ad-hoc signature at link time. Issue: #21845
* | | | | | | Tests: Disable visionOS cases because Xcode 15.0 excludes supportBrad King2023-09-262-37/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 25977e177b (apple: add preliminary visionOS support, 2023-06-22) we added visionOS based on a Xcode 15 beta version, but the Xcode 15.0 final release did not include it. Disable the test cases until we can improve the condition to detect availability. Issue: #25266
* | | | | | | Tests: Clarify RunCMake.XcFramework conditions testing Xcode versionBrad King2023-09-262-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 7050ac56a1 (macOS: Add support for linking against .xcframework folders, 2023-05-17) used conditions based on the AppleClang compiler version, but we actually want to check the Xcode version.
* | | | | | | Tests: Teach RunCMake to ignore Xcode DVTAssertions warningsBrad King2023-09-261-0/+2
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some Xcode versions, `xcodebuild` may warn: ... xcodebuild[...] DVTAssertions: Warning ... Teach RunCMake to drop such incidental lines before matching against expected output.
* | | | | | Merge topic 'cuda_handle_target_objects_in_device_link'Brad King2023-09-265-0/+71
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd984261e1 CUDA: Device linking now uses TARGET_OBJECTS content aa8facefe8 CUDA: Visual Studio propagate objects to device linking Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8829
| * | | | | | CUDA: Device linking now uses TARGET_OBJECTS contentRobert Maynard2023-09-255-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to an oversight in cmLinkLineDeviceComputer object files did not get propagate to the device linking phase when given via the `$<TARGET_OBJECTS>` generator expression.
* | | | | | | Merge topic 'hip-nvidia'Brad King2023-09-265-1/+77
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd982eec10 HIP: Add tests for special NVIDIA values of CMAKE_HIP_ARCHITECTURES 8c8b3f1bfa HIP: Fix support for -DCMAKE_HIP_ARCHITECTURES=native with NVCC b3e92775ab HIP: Add CMAKE_HIP_HOST_COMPILER when compiler is NVCC e43918b4ca HIP: Fix linking mixed-lang binary with CXX compiler and Makefile generators 4794505122 HIP: Do not require hip-lang package for NVIDIA platform 09d759dc7f HIP: Simplify exclusion of AMD device runtime with NVIDIA GPUs 2a60663670 HIP: Simplify CMAKE_GENERATOR references for determining compiler 8124950f6c CUDA: Generalize CMAKE_{CUDA => <LANG>}_HOST_COMPILER variable docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8836
| * | | | | | | HIP: Add tests for special NVIDIA values of CMAKE_HIP_ARCHITECTURESBrad King2023-09-253-0/+72
| | | | | | | |
| * | | | | | | HIP: Add CMAKE_HIP_HOST_COMPILER when compiler is NVCCBrad King2023-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add `HIPHOSTCXX` environment variable.
| * | | | | | | HIP: Fix linking mixed-lang binary with CXX compiler and Makefile generatorsBrad King2023-09-251-0/+4
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following commit 6377a43814 (CUDA: Support response files with nvcc, 2022-06-01, v3.25.0-rc1~636^2), while determining the compiler ABI, do not use response files, so that we can extract implicit link flags. Fixes: #25272
* | | | | | | Merge topic 'genexp-no-eval'Brad King2023-09-2615-0/+65
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 634079b86d cmGeneratorExpressionEvaluator: Short-circuit boolean operators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !8791
| * | | | | | | cmGeneratorExpressionEvaluator: Short-circuit boolean operatorsMartin Duffy2023-09-1315-0/+65
| | | | | | | |
* | | | | | | | Merge topic 'lint-genex-empty'Brad King2023-09-262-0/+7
|\ \ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80df7b1745 Linting: Fix empty evaluated genex Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8833
| * | | | | | | Linting: Fix empty evaluated genexOrkun Tokdemir2023-09-252-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update logic added by commit 099934e313 (Add generator expression support to static code analysis hooks, 2023-03-24, v3.27.0-rc1~261^2), and preserved by commit 993dde925f (TargetGenerator: Factor out generation of code check rules, 2023-05-12, v3.27.0-rc1~84^2~2), to handle a generator expression that evaluates to the empty string. If `<LANG>_CPPCHECK`, `<LANG>_CPPLINT`, `<LANG>_CLANG_TIDY`, or `<LANG>_INCLUDE_WHAT_YOU_USE` are empty after evaluating generator expressions, do not run their lints. Fixes: #25265
* | | | | | | | Merge topic 'orangec-compiler'Brad King2023-09-2645-95/+101
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8fa4f1ad7 ci: Add OrangeC 6.73.1 nightly CI job 531b4fe643 OrangeC: Add support for OrangeC compiler 10f435a58f Tests: Simplify nested if conditions in Complex tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Victor <lostfreeman@gmail.com> Merge-request: !8592
| * | | | | | | | OrangeC: Add support for OrangeC compilerDavid Lindauer2023-09-2545-61/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add compiler information modules. Update the test suite. Fixes: #25032 Co-authored-by: Brad King <brad.king@kitware.com>
| * | | | | | | | Tests: Simplify nested if conditions in Complex testsBrad King2023-09-254-38/+10
| | |_|/ / / / / | |/| | | | | |
* | | | | | | | Merge topic 'FetchContent-EXCLUDE_FROM_ALL'Craig Scott2023-09-264-0/+25
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5f77807f1c FetchContent: Add support for EXCLUDE_FROM_ALL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8822
| * | | | | | | FetchContent: Add support for EXCLUDE_FROM_ALLSteven Stallion2023-09-254-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #20167
* | | | | | | | Merge topic 'CrayClang-compiler'Brad King2023-09-253-7/+7
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80838316a8 CrayClang: Add support for this compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8781
| * | | | | | | | CrayClang: Add support for this compilerRyan Krattiger2023-09-223-7/+7
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `CrayClang` compiler ID for newer Cray compilers. Fixes: #25102
* | | | | | | | Tests: Update tests to run in multi-config generatorsKyle Edwards2023-09-224-3/+7
| | | | | | | |
* | | | | | | | Tests: Update tests to run in symlinked treeKyle Edwards2023-09-226-19/+40
|/ / / / / / /
* | | | | | | Merge topic 'hip-nvidia'Brad King2023-09-227-11/+40
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6546aa2a2a ci: Add HIP job using CUDA on NVIDIA GPUs 18158bf81c HIP: Add support for NVIDIA GPUs 127b6fa06b HIP: Add CMAKE_HIP_PLATFORM variable to specify GPU platform 90e23f40ee Tests/HIP/WithDefs: Clean up test case 9ebdf3281f Tests/HIP/ArchitectureOff: Cover HIP_ARCHITECTURES initialization cfec29196e ci: Add CUDA 11.8 to HIP 5.5 image 26470eb987 ci: Put HIP GPU platform in CMake_TEST_HIP Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8817
| * | | | | | | HIP: Add support for NVIDIA GPUsBrad King2023-09-216-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for using the CUDA Toolkit's NVCC to compile HIP code. Fixes: #25143
| * | | | | | | HIP: Add CMAKE_HIP_PLATFORM variable to specify GPU platformBrad King2023-09-213-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now, require the value to be `amd`, since that is the only platform we currently support.
| * | | | | | | Tests/HIP/WithDefs: Clean up test caseBrad King2023-09-211-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix code copied from equivalent CUDA test. Drop `CMAKE_HIP_ARCHITECTURES=OFF`. That is already covered by a dedicated `HIP.ArchitectureOff` test.
| * | | | | | | Tests/HIP/ArchitectureOff: Cover HIP_ARCHITECTURES initializationBrad King2023-09-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Verify that the property is initialized by `CMAKE_HIP_ARCHITECTURES`.
* | | | | | | | Merge topic 'cuda-factor-out-lang'Brad King2023-09-222-2/+6
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b32ea7cff0 CUDA: Factor out helper to generate CUDA architecture flags b3a1f17567 CUDA: Factor out helper to validate CMAKE_CUDA_ARCHITECTURES 8617c28221 CUDA: Factor out helper for detecting native CUDA architectures 0db0fe7958 CUDA: Factor out helper to compute all CUDA architectures c16f1e2b93 CUDA: Factor out helper to find CUDA Toolkit for compiler a6841a967b CUDA: Factor out helper to filter implicit link libraries deff0e638d CUDA: Factor out helper to parse NVCC implicit compiler and linker flags e1b2a5062f CUDA: Factor out some NVCC compiler information ... Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !8816
| * | | | | | | CUDA: Factor out helper to validate CMAKE_CUDA_ARCHITECTURESBrad King2023-09-212-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare to use it for other languages.
* | | | | | | | Merge topic 'macOS-system-framework-link'Brad King2023-09-224-13/+20
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3bdf95f942 macOS: GNU toolchain: ensure framework, marked as SYSTEM, can be linked Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8825
| * | | | | | | macOS: GNU toolchain: ensure framework, marked as SYSTEM, can be linkedMarc Chevrier2023-09-214-13/+20
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Fixes: #25263
* | | | | | | Merge topic 'fileset-private-dep'Brad King2023-09-2120-0/+125
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec2ba29ac5 Ninja: Allow compilation before generation of dependencies' private sources Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8420
| * | | | | | Ninja: Allow compilation before generation of dependencies' private sourcesMartin Duffy2023-09-2020-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires knowing when a generated header is public, which we can model using file sets. Add policy CMP0154 to treat generated sources as private by default in targets with file sets. Generated public headers can be specified in public file sets. Fixes: #24959 Issue: #15555
* | | | | | | Merge topic 'fortran-in-custom-targets'Brad King2023-09-2021-6/+173
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d870a47e23 Tests/FortranModules: add a test for iface Fortran sources e3d511fb9c Tests/FortranModules: also test INTERFACE targets with Fortran sources 978b68d3bb add_custom_target: Fix regression with Fortran sources 619aca80ae Tests/FortranModules: add a test case for #25223 45513c1a69 Tests/FortranModules: move issue 25112 fix from FortranOnly Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8814
| * | | | | | Tests/FortranModules: add a test for iface Fortran sourcesBen Boeckel2023-09-205-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tests that a library that doesn't compile Fortran sources but provides one via `INTERFACE` sources works as intended.
| * | | | | | Tests/FortranModules: also test INTERFACE targets with Fortran sourcesBen Boeckel2023-09-204-0/+22
| | | | | | |
| * | | | | | add_custom_target: Fix regression with Fortran sourcesBen Boeckel2023-09-204-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 74b1d6caf3 (cmComputeLinkInformation: compute link info for module-using targets, 2023-09-05, v3.27.5~7^2) we accidentally try to compute link information for custom targets if they have Fortran sources. For module dependencies, we only need to consider target types that can compile. Fixes: #25252
| * | | | | | Tests/FortranModules: add a test case for #25223Ben Boeckel2023-09-187-0/+81
| | | | | | |
| * | | | | | Tests/FortranModules: move issue 25112 fix from FortranOnlyBen Boeckel2023-09-185-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It involves modules, so it belongs in the `FortranModules` test set.
| * | | | | | Merge topic 'cxxmodules-non-compiled-source' into release-3.27Brad King2023-09-146-1/+37
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 458e3974a8 cxxmodules: detect and message about non-compiled sources Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8773