[CMake] Persistency of cmake options

Salvatore Iovene salvatore.iovene+cmake at googlemail.com
Tue Nov 20 01:39:07 EST 2007


On Nov 19, 2007 7:12 PM, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> On Monday 19 November 2007, Salvatore Iovene wrote:
> > Hi,
> >
> > If I call cmake with, say, -DFOO:STRING=Bar, how can I do so that the
> > value of FOO will be remembered the next time cmake is issued, without
> > having to give it explicitly? This is particularly usefule in case I
>
> If you use the type as given in your example it will always go in the cache.
> If you omit the type, it will go in the cache if the type is defined later on
> in any of the cmake files or if you are using cmake cvs.

Ok, then my problem was that I wasn't using the type in my real life
app, but only in the example in the email :)
Thanks!

-- 
Salvatore Iovene
http://www.iovene.com/
Key Fingerprint: 5647 944D D5AD 2E87 00B4  7D54 2864 359D FF20 16D8


More information about the CMake mailing list