[cmake-developers] Generating files at generate-time
Alexander Neundorf
neundorf at kde.org
Tue Apr 23 15:24:07 EDT 2013
On Tuesday 23 April 2013, Stephen Kelly wrote:
> Hi,
>
> as 2.8.11 will be out soon, I'm returning to some pending features I'd like
> to get in early in the next release.
>
> I've pushed the genex-evaluate-file branch to my clone. It implements the
> file(EVALUATE) subcommand, which evaluates an input file containing
> generator expressions and writes the result to an output file:
>
> file(EVALUATE "${CMAKE_CURRENT_SOURCE_DIR}/input.txt"
> "${CMAKE_CURRENT_BINARY_DIR}/output.txt"
> )
is this somehow similar to configure_file() ?
If so, maybe it could also be a subcommand of that ?
Alex
More information about the cmake-developers
mailing list