summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckSourceCompiles
Commit message (Collapse)AuthorAgeFilesLines
* Tests: With lfortran < 1.24 skip cases broken by incorrect filename handlingmakise-homura2024-01-081-0/+8
| | | | | | | | | | | `lfortran` < 1.24 uses `fccn`, a Fortran-to-C converter that incorrectly handles long filenames that are more than 128 characters long; so to check if Fortran can compile something, CMake must be run in binary directory that has a name of less that 35 characters long. It is ok for typical runs line `cmake -S . -B build` or `cmake ..`, but does not work with usual CDash dashboard testing paths. All this is not a problem for modern LCC >= 1.24.
* Tests: Update Swift tests to use CMP0157 NEW behaviorEvan Wilde2023-11-171-0/+1
| | | | | Fixing failing tests caused by introduction of new policy + warning when the policy is not set.
* CheckSourceCompiles: Add support for SwiftEvan Wilde2022-10-242-0/+19
| | | | | Plumb through swift `check_source_compiles` support. Add tests to check that valid swift sources compile and invalid sources don't.
* Tests: Move TryCompile check module cases to RunCMake.Check*Brad King2022-10-065-0/+92
| | | | The latter already have similar checks for similar modules.
* Tests: Clarify RunCMake.Check* case namesBrad King2022-10-069-8/+8
| | | | | | Cases for `CheckSource{Compiles,Runs}` and `Check{Compiler,Linker}Flag` cover the modules with the language as a parameter, not the language-specific modules.
* HIP: Add HIP to all the Check* modulesRobert Maynard2021-06-072-0/+31
|
* Check*: Tolerate variables set with names of languagesBrad King2020-11-256-0/+12
| | | | | | | | | | | | Fix the language checks added by commit 90dead024c (CheckCompilerFlag: unified way to check compiler flags per language, 2020-09-25, v3.19.0-rc1~88^2), commit 10ae907de0 (CheckSoureCompiles: Add a unified way to check if a source compiles, 2020-09-14, v3.19.0-rc1~118^2~1), and commit 357e2ef429 (CheckSoureRuns: Add a unified way to check if a source runs, 2020-09-14, v3.19.0-rc1~118^2) to work when variables of the language names are set. Fixes: #21500
* Modules: Do not implicitly add new functions via old Check ModulesRobert Maynard2020-10-261-1/+3
| | | | | | | | | | | | | The conversion of Check<Lang>CompilerFlag, SourceCompiles, and SourceRuns over to the new functions has the possibility of breaking projects that had functions with those existing names. To reduce the possibility of collisions we now have all the legacy code call functions that start with `cmake_`, and users will need to explicitly include the new modules to get the non-prefixed versions Fixes: #21359
* Tests: Add cases for CheckSource{Compiles,Runs} bad argumentsBrad King2020-10-154-0/+16
|
* CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlagsRobert Maynard2020-10-082-0/+31
|
* ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPCRobert Maynard2020-10-062-0/+24
|
* CheckSoureCompiles: Add a unified way to check if a source compilesRobert Maynard2020-09-2313-0/+117