[Cmake] Looping over numbers
Andy Cedilnik
andy.cedilnik at kitware.com
Tue Feb 4 13:36:36 EST 2003
Hi John,
How about keep range the way I said before and add as a part of STRING
command something like:
STRING(FORMAT VARIABLE "%d" 5)
Though, this would add new syntax.
Andy
On Tue, 2003-02-04 at 12:34, John Biddiscombe wrote:
> Good plan. How about
>
> RANGE(var 1 20 "%02i")
>
> Adding a printf type option for output, because it'd be nice to generate
> 01 02 03 04 as well as 1 2 3 4 to give better sorting on the dashboard.
>
> RANGE(var 1 20 "File%02i") <-handy for file names too
>
> I'll try and create one when I have a few hours free.
>
> JB
More information about the CMake
mailing list