diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-09-19 13:49:14 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-09-19 13:49:14 (GMT) |
commit | d4f5545007c99259dcb7414d975a5446d5163933 (patch) | |
tree | d4a2da63e8ee80cd7787df86c2c8fe7869878d52 /Source/cmTryCompileCommand.h | |
parent | 3eaf054d6a68ea7e915abddb61e82ff94b123fd6 (diff) | |
download | CMake-d4f5545007c99259dcb7414d975a5446d5163933.zip CMake-d4f5545007c99259dcb7414d975a5446d5163933.tar.gz CMake-d4f5545007c99259dcb7414d975a5446d5163933.tar.bz2 |
updated to try compile
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); |