mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Extend the `file()` command with a new `CONFIGURE` subcommand that behaves the same as `string(CONFIGURE)` except that it writes the resulting output immediately to a file. Fixes: #20388
7 lines
141 B
CMake
7 lines
141 B
CMake
set(file_name ${CMAKE_CURRENT_BINARY_DIR}/NewLineStyle.txt)
|
|
file(CONFIGURE
|
|
OUTPUT ${file_name}
|
|
CONTENT "Data\n"
|
|
NEWLINE_STYLE
|
|
)
|