summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-05-24 16:06:59 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-05-24 16:06:59 (GMT)
commit7147c3e1cc23953abc968e9502669ef7628de75c (patch)
tree77623c4e22a14c85452c3e0a9b8c3807795d0d32 /Source/cmTryCompileCommand.h
parent7d7aba292c09170fc9f145d68644e1ff6d158eec (diff)
downloadCMake-7147c3e1cc23953abc968e9502669ef7628de75c.zip
CMake-7147c3e1cc23953abc968e9502669ef7628de75c.tar.gz
CMake-7147c3e1cc23953abc968e9502669ef7628de75c.tar.bz2
ENH: add COPY_FILE argument to TRY_COMPILE, so the compiled executable can
be used e.g. for getting strings out of it. Alex
Diffstat (limited to 'Source/cmTryCompileCommand.h')
-rw-r--r--Source/cmTryCompileCommand.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmTryCompileCommand.h b/Source/cmTryCompileCommand.h
index 38230d4..22dfd5e 100644
--- a/Source/cmTryCompileCommand.h
+++ b/Source/cmTryCompileCommand.h
@@ -60,20 +60,22 @@ public:
{
return
" TRY_COMPILE(RESULT_VAR bindir srcdir\n"
- " projectName <targetname> <CMAKE_FLAGS <Flags>>\n"
- " <OUTPUT_VARIABLE var>)\n"
+ " projectName <targetname> [CMAKE_FLAGS <Flags>]\n"
+ " [OUTPUT_VARIABLE var])\n"
"Try compiling a program. In this form, srcdir should contain a complete "
"CMake project with a CMakeLists.txt file and all sources. The bindir and "
"srcdir will not be deleted after this command is run. "
"If <target name> is specified then build just that target "
"otherwise the all or ALL_BUILD target is built.\n"
" TRY_COMPILE(RESULT_VAR bindir srcfile\n"
- " <CMAKE_FLAGS <Flags>>\n"
- " <COMPILE_DEFINITIONS <flags> ...>\n"
- " <OUTPUT_VARIABLE var>)\n"
+ " [CMAKE_FLAGS <Flags>]\n"
+ " [COMPILE_DEFINITIONS <flags> ...]\n"
+ " [OUTPUT_VARIABLE var]\n"
+ " [COPY_FILE <filename> )\n"
"Try compiling a srcfile. In this case, the user need only supply a "
"source file. CMake will create the appropriate CMakeLists.txt file "
- "to build the source. "
+ "to build the source. If COPY_FILE is used, the compiled file will be"
+ "copied to the given file.\n"
"In this version all files in bindir/CMakeFiles/CMakeTmp, "
"will be cleaned automatically, for debugging a --debug-trycompile can "
"be passed to cmake to avoid the clean. Some extra flags that "