[cmake-developers] valid variable names

Alexander Neundorf neundorf at kde.org
Mon Aug 14 15:12:12 EDT 2006


On Monday 14 August 2006 15:50, Bill Hoffman wrote:
> So, cmake now allows this:
>
> set(1 0)
> message(${1})
>
>
> And it will print 0.  This caused a hard to track down problem in a macro
> with kde. Should cmake not allow variables starting with numbers?

I guess "set(TRUE 0)" will also "work"...

Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net



More information about the cmake-developers mailing list