summaryrefslogtreecommitdiffstats
path: root/Tests/TryCompile/old_and_new_signature_tests.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix TryCompile bad source case for clang-cl 15 on WindowsBrad King2022-11-101-1/+1
| | | | | | When `pass.c bad#source.c` passes through `nmake`, the compiler gets `pass.c bad`. The clang-cl 15 compiler now fails on `bad` with an error that we did not previously match. Update our regex.
* try_compile: Add NO_CACHE option (also try_run)Matthew Woehlke2022-09-281-0/+52
| | | | | | | Add NO_CACHE option to try_compile and try_run, which places the results in regular, rather than cache, variables. Issue: #22799
* Tests: Clean up and simplify TryCompile testsMatthew Woehlke2022-09-221-31/+10
| | | | | | Add and use some additional helper macros to simplify repetitive checks. Use existing macros in more places. Tweak macros to improve output in case of failure.
* try_compile: Add keyword-dispatched signatureMatthew Woehlke2022-09-051-0/+245
Introduce a new signature for try_compile (and try_run) which removes the `bindir` argument and requires the SOURCES tag. This will eventually allow us to add other ways of providing sources, but also allows us to change the behavior without breaking compatibility. The old signature uses a special, but non-unique temporary location inside the specified `bindir`, which conventionally is just the project's build directory. The new signature unconditionally uses the a unique temporary directory which is unconditionally within the project's build directory (which is no longer separately specified). This ensures that successive runs do not overwrite previous runs, will simplify debugging, and should also, eventually, allow us to execute multiple trials in parallel.