diff options
Diffstat (limited to 'Help/command/file.rst')
-rw-r--r-- | Help/command/file.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst index 5b9dfac..ede95a1 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -398,10 +398,19 @@ Filesystem ============== ====================================================== .. signature:: - file(MAKE_DIRECTORY <directories>...) + file(MAKE_DIRECTORY <directories>... [RESULT <result>]) Create the given directories and their parents as needed. + The options are: + + ``RESULT <result>`` + .. versionadded:: 3.31 + + Set ``<result>`` variable to ``0`` on success or an error message + otherwise. If ``RESULT`` is not specified and the operation fails, + an error is emitted. + .. versionchanged:: 3.30 ``<directories>`` can be an empty list. CMake 3.29 and earlier required at least one directory to be given. |