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 /Source/cmTryCompileCommand.h | |
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 'Source/cmTryCompileCommand.h')
-rw-r--r-- | Source/cmTryCompileCommand.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmTryCompileCommand.h b/Source/cmTryCompileCommand.h index 6caa130..163756d 100644 --- a/Source/cmTryCompileCommand.h +++ b/Source/cmTryCompileCommand.h @@ -64,16 +64,16 @@ public: "Specify targetName to build a specific target instead of the 'all' or " "'ALL_BUILD' target." "\n" - " try_compile(RESULT_VAR <bindir> <srcfile>\n" + " try_compile(RESULT_VAR <bindir> <srcfile|SOURCES srcfile...>\n" " [CMAKE_FLAGS flags...]\n" " [COMPILE_DEFINITIONS flags...]\n" " [LINK_LIBRARIES libs...]\n" " [OUTPUT_VARIABLE <var>]\n" " [COPY_FILE <fileName>])\n" - "Try building a source file into an executable. " - "In this form the user need only supply a source file that defines " - "a 'main'. " - "CMake will create a CMakeLists.txt file to build the source " + "Try building an executable from one or more source files. " + "In this form the user need only supply one or more source files " + "that include a definition for 'main'. " + "CMake will create a CMakeLists.txt file to build the source(s) " "as an executable. " "Specify COPY_FILE to get a copy of the linked executable at the " "given fileName." |