|
|
@@ -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 "
|