diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-08-16 22:06:17 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-08-16 22:06:17 (GMT) |
commit | 814b3687251605ed5c2924b0705ebae2e70d2eb3 (patch) | |
tree | b11ccb825c9bda386d78cb6eae1551b22b02d60d /Source/cmReturnCommand.h | |
parent | bf4b0bfdd75d18c328acadecaf6d728a2a96377a (diff) | |
download | CMake-814b3687251605ed5c2924b0705ebae2e70d2eb3.zip CMake-814b3687251605ed5c2924b0705ebae2e70d2eb3.tar.gz CMake-814b3687251605ed5c2924b0705ebae2e70d2eb3.tar.bz2 |
STYLE: extend documentation for RETURN() a bit
ENH: add a test for calling RETURN() in an included file
Alex
Diffstat (limited to 'Source/cmReturnCommand.h')
-rw-r--r-- | Source/cmReturnCommand.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/cmReturnCommand.h b/Source/cmReturnCommand.h index d75cda5..5aee88b 100644 --- a/Source/cmReturnCommand.h +++ b/Source/cmReturnCommand.h @@ -57,7 +57,7 @@ public: */ virtual const char* GetTerseDocumentation() { - return "Return from a directory or function."; + return "Return from a file, directory or function."; } /** @@ -67,10 +67,14 @@ public: { return " return()\n" - "Returns from a directory or function. When this command is " - "encountered, it caused process of the current function or " - "directory to stop and control is return to the caller of the " - "function, or the parent directory if any. Note that a macro " + "Returns from a file, directory or function. When this command is " + "encountered in an included file (via include() or find_package()), " + "it causes processing of the current file to stop and control is " + "returned to the including file. If it is encountered in a file which " + "is not included by another file, e.g. a CMakeLists.txt, control is " + "returned to the parent directory if there is one. " + "If return is called in a function, control is returned to the caller " + "of the function. Note that a macro " "is not a function and does not handle return like a function does."; } |