diff options
author | Brad King <brad.king@kitware.com> | 2013-06-06 17:54:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-06 18:35:20 (GMT) |
commit | 482f1122ad5db4c51b26a6e943b4bb5ef3d800cc (patch) | |
tree | 91689912c31ef9e3b51a7b8619b23f632296a22c /Tests/RunCMake/try_compile/BadSources2-stderr.txt | |
parent | bb879bcf2dd8a65eeb285ef67aa72c16aab01938 (diff) | |
download | CMake-482f1122ad5db4c51b26a6e943b4bb5ef3d800cc.zip CMake-482f1122ad5db4c51b26a6e943b4bb5ef3d800cc.tar.gz CMake-482f1122ad5db4c51b26a6e943b4bb5ef3d800cc.tar.bz2 |
try_compile: Add signature to allow multiple SOURCES
Extend the signature
try_compile(RESULT_VAR <bindir> <srcfile> ...)
to allow multiple sources as
try_compile(RESULT_VAR <bindir> SOURCES <srcfile>... ...)
Process the sources to generate a CMakeLists.txt that enables all needed
languages.
Teach the TryCompile test to try cases with two sources of the same
language and of mixed languages. Teach RunCMake.try_compile to cover
error cases for the signature.
Diffstat (limited to 'Tests/RunCMake/try_compile/BadSources2-stderr.txt')
-rw-r--r-- | Tests/RunCMake/try_compile/BadSources2-stderr.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/BadSources2-stderr.txt b/Tests/RunCMake/try_compile/BadSources2-stderr.txt new file mode 100644 index 0000000..3313f99 --- /dev/null +++ b/Tests/RunCMake/try_compile/BadSources2-stderr.txt @@ -0,0 +1,12 @@ +CMake Error at BadSources2.cmake:2 \(try_compile\): + Unknown extension ".cxx" for file + + .*/Tests/RunCMake/try_compile/src.cxx + + try_compile\(\) works only for enabled languages. Currently these are: + + C NONE( RC)? + + See project\(\) command to enable other languages. +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) |