mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -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
5 lines
67 B
CMake
5 lines
67 B
CMake
file(CONFIGURE
|
|
OUTPUT "file-$<CONFIG>.txt"
|
|
CONTENT "foo"
|
|
)
|