mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'issue-19198'
255df8622b file(GENERATE): Support new line style
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Brad King <brad.king@kitware.com>
Merge-request: !5649
This commit is contained in:
@@ -481,7 +481,8 @@ modified.
|
||||
<INPUT input-file|CONTENT content>
|
||||
[CONDITION expression] [TARGET target]
|
||||
[FILE_PERMISSIONS <permissions>...]
|
||||
[NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS])
|
||||
[NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS]
|
||||
[NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])
|
||||
|
||||
Generate an output file for each build configuration supported by the current
|
||||
:manual:`CMake Generator <cmake-generators(7)>`. Evaluate
|
||||
@@ -533,6 +534,13 @@ from the input content to produce the output content. The options are:
|
||||
Transfer the file permissions of the original file to the generated file.
|
||||
This option expects INPUT option.
|
||||
|
||||
``NEWLINE_STYLE <style>``
|
||||
.. versionadded:: 3.20
|
||||
|
||||
Specify the newline style for the generated file. Specify
|
||||
``UNIX`` or ``LF`` for ``\n`` newlines, or specify
|
||||
``DOS``, ``WIN32``, or ``CRLF`` for ``\r\n`` newlines.
|
||||
|
||||
Exactly one ``CONTENT`` or ``INPUT`` option must be given. A specific
|
||||
``OUTPUT`` file may be named by at most one invocation of ``file(GENERATE)``.
|
||||
Generated files are modified and their timestamp updated on subsequent cmake
|
||||
|
||||
Reference in New Issue
Block a user