diff options
Diffstat (limited to 'Source/cmTryCompileCommand.h')
-rw-r--r-- | Source/cmTryCompileCommand.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/cmTryCompileCommand.h b/Source/cmTryCompileCommand.h index 1b3bf0b..ee5614b 100644 --- a/Source/cmTryCompileCommand.h +++ b/Source/cmTryCompileCommand.h @@ -54,9 +54,16 @@ public: { return "Try compiling some code"; } - /** + * This is the core code for try compile. It is here so that other + * commands, such as TryRun can access the same logic without + * dumplication. + */ + static int CoreTryCompileCode( + cmMakefile *mf, std::vector<std::string> const& argv, bool clean); + + /** * More documentation. */ virtual const char* GetFullDocumentation() @@ -66,8 +73,13 @@ public: "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 <CMAKE_FLAGS <Flags>>)\n" - "Try compiling a srcfile. Return the success or failure in RESULT_VAR."; + "TRY_COMPILE(RESULT_VAR bindir srcfile\n" + " <CMAKE_FLAGS <Flags>> <COMPILE_DEFINITIONS <flags> ...>)\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."; } cmTypeMacro(cmTryCompileCommand, cmCommand); |