summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-10-30 18:46:25 (GMT)
committerBrad King <brad.king@kitware.com>2003-10-30 18:46:25 (GMT)
commitf2e6d5790b3e11ce1a190ebe1e994c31bac7fe36 (patch)
tree6f064a5d2282a261c17ad330560e02eff87c2801 /Source/cmTryCompileCommand.h
parenta92c58bacc4a72e5658f24d69d98330f7bbca2f1 (diff)
downloadCMake-f2e6d5790b3e11ce1a190ebe1e994c31bac7fe36.zip
CMake-f2e6d5790b3e11ce1a190ebe1e994c31bac7fe36.tar.gz
CMake-f2e6d5790b3e11ce1a190ebe1e994c31bac7fe36.tar.bz2
BUG#163: Added documentation of OUTPUT_VARIABLE argument.
Diffstat (limited to 'Source/cmTryCompileCommand.h')
-rw-r--r--Source/cmTryCompileCommand.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmTryCompileCommand.h b/Source/cmTryCompileCommand.h
index 6ac3b19..5586f66 100644
--- a/Source/cmTryCompileCommand.h
+++ b/Source/cmTryCompileCommand.h
@@ -75,18 +75,21 @@ public:
{
return
" TRY_COMPILE(RESULT_VAR bindir srcdir\n"
- " projectName <CMAKE_FLAGS <Flags>>)\n"
+ " projectName <CMAKE_FLAGS <Flags>>\n"
+ " <OUTPUT_VARIABLE var>)\n"
"Try compiling a program. Return the success or failure in RESULT_VAR. "
"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"
+ " <COMPILE_DEFINITIONS <flags> ...>\n"
+ " <OUTPUT_VARIABLE var>)\n"
"Try compiling a srcfile. Return the success or failure in RESULT_VAR. "
"CMAKE_FLAGS can be used to pass -DVAR:TYPE=VALUE flags to cmake. The "
"COMPILE_DEFINITIONS are -Ddefinition that will be passed to the "
"compile line. If srcfile is specified the files in bindir/CMakeTmp "
- "are cleaned.";
+ "are cleaned automatically. If OUTPUT_VARIABLE is specified, then the "
+ "output from the build process is stored in the given variable.";
}
cmTypeMacro(cmTryCompileCommand, cmCommand);