feature request: configure_file() accepts variable definitions in call
On occasion, it can be useful to use the same input file to configure a variety of output files. This can be done with something like:
set(VAR A)
configure_file(input output1)
unset(VAR)
set(VAR B)
configure_file(input output2)
unset(VAR)
It would be nice if we could encapsulate this into single calls to configure_file()
; for example,
configure_file(input output1 VARIABLES VAR A)
configure_file(input output2 VARIABLES VAR B)
where the values following VARIABLES
would be key-value pairs. These variables would take precedence over any other pre-defined CMake / cache variables.