diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-02 14:21:12 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-05 17:19:59 (GMT) |
commit | aa9220d3a0c4a5b15a9a590ed75afedff38764fe (patch) | |
tree | b7f2decb489123643acbef1e85850b803c7a2722 /Tests/RunCMake/try_compile/BadSources2-stderr.txt | |
parent | d1befe5515968d7fe4f7fd3f2ca243e98d6012d0 (diff) | |
download | CMake-aa9220d3a0c4a5b15a9a590ed75afedff38764fe.zip CMake-aa9220d3a0c4a5b15a9a590ed75afedff38764fe.tar.gz CMake-aa9220d3a0c4a5b15a9a590ed75afedff38764fe.tar.bz2 |
try_compile: Add keyword-dispatched signature
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.
Diffstat (limited to 'Tests/RunCMake/try_compile/BadSources2-stderr.txt')
-rw-r--r-- | Tests/RunCMake/try_compile/BadSources2-stderr.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/try_compile/BadSources2-stderr.txt b/Tests/RunCMake/try_compile/BadSources2-stderr.txt index 3313f99..953dd9c 100644 --- a/Tests/RunCMake/try_compile/BadSources2-stderr.txt +++ b/Tests/RunCMake/try_compile/BadSources2-stderr.txt @@ -1,4 +1,4 @@ -CMake Error at BadSources2.cmake:2 \(try_compile\): +CMake Error at BadSources2.cmake:[0-9]+ \(try_compile\): Unknown extension ".cxx" for file .*/Tests/RunCMake/try_compile/src.cxx |